mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 10:40:11 +01:00
spirv: enable SpvCapabilityFloat64 only to supported platforms
v2 (Jason): - Use nir_spirv_supported_extensions to check if the feature is enabled. Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
c2acf97fcc
commit
88c8121ec9
2 changed files with 5 additions and 1 deletions
|
|
@ -45,6 +45,7 @@ struct nir_spirv_specialization {
|
|||
};
|
||||
|
||||
struct nir_spirv_supported_extensions {
|
||||
bool float64;
|
||||
bool image_ms_array;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -2609,7 +2609,6 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
|
|||
case SpvCapabilityVector16:
|
||||
case SpvCapabilityFloat16Buffer:
|
||||
case SpvCapabilityFloat16:
|
||||
case SpvCapabilityFloat64:
|
||||
case SpvCapabilityInt64:
|
||||
case SpvCapabilityInt64Atomics:
|
||||
case SpvCapabilityAtomicStorage:
|
||||
|
|
@ -2626,6 +2625,10 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
|
|||
spirv_capability_to_string(cap));
|
||||
break;
|
||||
|
||||
case SpvCapabilityFloat64:
|
||||
spv_check_supported(float64, cap);
|
||||
break;
|
||||
|
||||
case SpvCapabilityAddresses:
|
||||
case SpvCapabilityKernel:
|
||||
case SpvCapabilityImageBasic:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue