anv: Use spirv_capabilities for the float64 shader

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Iván Briano <ivan.briano@intel.com>
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28905>
This commit is contained in:
Faith Ekstrand 2024-04-25 04:09:12 -05:00 committed by Marge Bot
parent 25dfaf5ff4
commit 91b62e9868

View file

@ -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
};