From 91b62e986867ba12dad20789e51f978f1883f38c Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Thu, 25 Apr 2024 04:09:12 -0500 Subject: [PATCH] anv: Use spirv_capabilities for the float64 shader MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Alyssa Rosenzweig Reviewed-by: Iván Briano Acked-By: Mike Blumenkrantz Part-of: --- src/intel/vulkan/anv_pipeline_cache.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/intel/vulkan/anv_pipeline_cache.c b/src/intel/vulkan/anv_pipeline_cache.c index 73a145664a5..1b301f016e6 100644 --- a/src/intel/vulkan/anv_pipeline_cache.c +++ b/src/intel/vulkan/anv_pipeline_cache.c @@ -637,14 +637,16 @@ anv_load_fp64_shader(struct anv_device *device) if (device->fp64_nir) return; + const struct spirv_capabilities spirv_caps = { + .Addresses = true, + .Float64 = true, + .Int8 = true, + .Int16 = true, + .Int64 = true, + }; + struct spirv_to_nir_options spirv_options = { - .caps = { - .address = true, - .float64 = true, - .int8 = true, - .int16 = true, - .int64 = true, - }, + .capabilities = &spirv_caps, .environment = NIR_SPIRV_VULKAN, .create_library = true };