diff options
author | Matt Turner <mattst88@gmail.com> | 2024-04-25 17:27:58 -0400 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-04-26 14:08:32 +0000 |
commit | 2a417e3fc1911f5edc912621fe532c1c3ec64d0b (patch) | |
tree | 4b731d278b8f1d40a271701919690f13a8544187 /src/intel | |
parent | bdbcba52693cc62b0ec5d1afea6609a28df2a7ca (diff) |
It's only used by anv and it requires glslang, which isn't otherwise
required for building iris.
Fixes: b52e25d3a8e ("anv: rewrite internal shaders using OpenCL")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28943>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/shaders/meson.build | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/intel/shaders/meson.build b/src/intel/shaders/meson.build index be98e67d43a..e8e2c311324 100644 --- a/src/intel/shaders/meson.build +++ b/src/intel/shaders/meson.build @@ -1,19 +1,21 @@ # Copyright © 2023 Intel Corporation # SPDX-License-Identifier: MIT -intel_float64_spv_h = custom_target( - 'float64_spv.h', - input : [glsl2spirv, float64_glsl_file], - output : 'float64_spv.h', - command : [ - prog_python, '@INPUT@', '@OUTPUT@', - prog_glslang, - '--create-entry', 'main', - '--vn', 'float64_spv_source', - '--glsl-version', '450', - '-Olib', - ] -) +if with_intel_vk + intel_float64_spv_h = custom_target( + 'float64_spv.h', + input : [glsl2spirv, float64_glsl_file], + output : 'float64_spv.h', + command : [ + prog_python, '@INPUT@', '@OUTPUT@', + prog_glslang, + '--create-entry', 'main', + '--vn', 'float64_spv_source', + '--glsl-version', '450', + '-Olib', + ] + ) +endif intel_shader_files = files( 'libintel_shaders.h', |