Skip to content

Commit

Permalink
handle missing vendors for VK_ICD
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Jan 13, 2022
1 parent bd129eb commit 5fbfc7b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/backend/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,11 @@ def run_command(
System doesn't support PRIME, so using the first result
from the gpu vendors list.
'''
_first = list(gpu["vendors"].keys())[0]
env["VK_ICD_FILENAMES"] = gpu["vendors"][_first]["icd"]
if "vendors" in gpu and len(gpu["vendors"]) > 0:
_first = list(gpu["vendors"].keys())[0]
env["VK_ICD_FILENAMES"] = gpu["vendors"][_first]["icd"]
else:
logging.warning("No GPU vendor found, that's weird but keep going without setting VK_ICD_FILENAMES")

if parameters["pulseaudio_latency"]:
env["PULSE_LATENCY_MSEC"] = "60"
Expand Down

0 comments on commit 5fbfc7b

Please sign in to comment.