intel: Only build shaders with anv and iris

This allows crocus and hasvk to be built without needing any of the OpenCL
stuff.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10634
Fixes: b52e25d3a8 ("anv: rewrite internal shaders using OpenCL")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27663>
This commit is contained in:
Karol Herbst 2024-02-20 02:05:26 +01:00 committed by Marge Bot
parent 815a6647eb
commit 83895d4025

View file

@ -29,7 +29,9 @@ subdir('isl')
subdir('common')
subdir('compiler')
subdir('decoder')
subdir('shaders')
if with_intel_vk or with_gallium_iris
subdir('shaders')
endif
if with_intel_hasvk or with_intel_vk or with_gallium_crocus or with_gallium_iris or with_intel_tools
subdir('perf')
endif