intel: Build float64 shader only for Vulkan

It's only used by anv and it requires glslang, which isn't otherwise
required for building iris.

Fixes: b52e25d3a8 ("anv: rewrite internal shaders using OpenCL")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28943>
(cherry picked from commit 2a417e3fc1)
This commit is contained in:
Matt Turner 2024-04-25 17:27:58 -04:00 committed by Eric Engestrom
parent c4e621471f
commit 7ad091b02c
2 changed files with 16 additions and 14 deletions

View file

@ -344,7 +344,7 @@
"description": "intel: Build float64 shader only for Vulkan",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "b52e25d3a8eee702ff5d21e4cdb9a4dc0736282a",
"notes": null

View file

@ -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',