Skip to content

check-vulkan: Temporarily print JSON details of GPUs to stderr

Simon McVittie requested to merge wip/multi-gpu-stopgap into master

When the corresponding code in SrtGraphics is ready, we can parse the JSON on stdout and produce machine-readable output from steam-runtime-system-info. However, until we have that, human-readable output is better than nothing.


Sample output:

      "graphics-details" : {
        "x11/vulkan" : {
          "messages" : [
            "ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_intel.so: wrong ELF class: ELFCLASS32",
            "ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_lvp.so: wrong ELF class: ELFCLASS32",
            "ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_radeon.so: wrong ELF class: ELFCLASS32",
            "MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0",
            "WARNING: lavapipe is not a conformant vulkan implementation, testing use only.",
            "MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0",
            "{\"device-info\":{\"device-name\":\"Intel(R) UHD Graphics 620 (KBL GT2)\",\"device-type\":1,\"api-version\":\"1.2.145\",\"driver-version\":\"20.3.3\",\"vendor-id\":\"0x8086\",\"device-id\":\"0x5917\"}}",
            "{\"device-info\":{\"device-name\":\"llvmpipe (LLVM 11.0.1, 256 bits)\",\"device-type\":4,\"api-version\":\"1.0.2\",\"driver-version\":\"0.0.1\",\"vendor-id\":\"0x10005\",\"device-id\":\"0\"}}",
            "{\"test\":{\"index\":0,\"can-draw\":false,\"error-message\":\"Failed to open file “/.../_build/clang/helpers/shaders/vert.spv”: No such file or directory\"}}",
            "Failed to open file ?/.../_build/clang/helpers/shaders/vert.spv?: No such file or directory"

Merge request reports

Loading