]> glassweightruler.freedombox.rocks Git - waydroid.git/commitdiff
gpu: Do not log failure to read i915_capabilities
authorAlessandro Astone <ales.astone@gmail.com>
Wed, 5 Feb 2025 19:14:54 +0000 (20:14 +0100)
committerAlessandro Astone <ales.astone@gmail.com>
Wed, 5 Feb 2025 19:15:00 +0000 (20:15 +0100)
If awk fails to read the file, we will simply fail to parse the output
to integer immediatly after.

tools/helpers/gpu.py

index 2a38cfe82dc7b5f7ae5056f803997f6df6087ac5..458712ac8470b52f567e7caf76e7cdb80900c230 100644 (file)
@@ -39,7 +39,7 @@ def getVulkanDriver(args, dev):
     if kernel_driver == "i915":
         try:
             gen = tools.helpers.run.user(args,["awk", "/^graphics version:|^gen:/ {print $NF}",
-                "/sys/kernel/debug/dri/{}/i915_capabilities".format(getMinor(args, dev))], output_return=True)
+                "/sys/kernel/debug/dri/{}/i915_capabilities".format(getMinor(args, dev))], output_return=True, check=False)
             if int(gen) < 9:
                 return "intel_hasvk"
         except: