Skip to content

intel: Fix support of kernel versions without DRM_I915_QUERY_ENGINE_INFO

José Roberto de Souza requested to merge zehortigoza/mesa:fix-9099 into main

As Matt Turner pointed out, the commit here fixed breaks in Iris and ANV in kernel versions without support for DRM_I915_QUERY_ENGINE_INFO. As compute engines are only present in gfx12 and newer, and support for DRM_I915_QUERY_ENGINE_INFO was added before any gfx12 platform, we can check for gfx version before trying to get engine info.

For ANV, this is done by checking if engine_info is not NULL, like in other places in the ANV source code.

Fixes: a364f23a ("intel: Make gen12 URB space reservation dependent on compute engine presence") Closes: #9099 (closed) Signed-off-by: José Roberto de Souza jose.souza@intel.com

Merge request reports