mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 22:30:12 +01:00
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:
parent
25dfaf5ff4
commit
91b62e9868
1 changed files with 9 additions and 7 deletions
|
|
@ -637,14 +637,16 @@ anv_load_fp64_shader(struct anv_device *device)
|
||||||
if (device->fp64_nir)
|
if (device->fp64_nir)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
const struct spirv_capabilities spirv_caps = {
|
||||||
|
.Addresses = true,
|
||||||
|
.Float64 = true,
|
||||||
|
.Int8 = true,
|
||||||
|
.Int16 = true,
|
||||||
|
.Int64 = true,
|
||||||
|
};
|
||||||
|
|
||||||
struct spirv_to_nir_options spirv_options = {
|
struct spirv_to_nir_options spirv_options = {
|
||||||
.caps = {
|
.capabilities = &spirv_caps,
|
||||||
.address = true,
|
|
||||||
.float64 = true,
|
|
||||||
.int8 = true,
|
|
||||||
.int16 = true,
|
|
||||||
.int64 = true,
|
|
||||||
},
|
|
||||||
.environment = NIR_SPIRV_VULKAN,
|
.environment = NIR_SPIRV_VULKAN,
|
||||||
.create_library = true
|
.create_library = true
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue