nir: Only build NIR headers when with_gfx_compute is false

Signed-off-by: Thong Thai <thong.thai@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41493>
This commit is contained in:
Thong Thai 2026-05-11 13:09:55 +00:00 committed by Marge Bot
parent c07a203ef4
commit 931dba218e

View file

@ -78,7 +78,7 @@ nir_intrinsics_c = custom_target(
depend_files : files('nir_intrinsics.py'),
)
with_nir_headers_only = (
with_nir_headers_only = not with_gfx_compute or (
gallium_drivers == ['d3d12'] and
get_option('gallium-d3d12-graphics').disabled() and
not [