mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 00:20:09 +01:00
spirv: check support for SPV_KHR_float_controls capabilities
v2: - Correct extension name (Caio). - Rename supported capabilities member (Andres). Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Connor Abbott <cwabbott0@gmail.com> [v1] Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
This commit is contained in:
parent
320c36ed3a
commit
420ad0a1a3
2 changed files with 8 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ struct spirv_supported_capabilities {
|
|||
bool physical_storage_buffer_address;
|
||||
bool post_depth_coverage;
|
||||
bool runtime_descriptor_array;
|
||||
bool float_controls;
|
||||
bool shader_viewport_index_layer;
|
||||
bool stencil_export;
|
||||
bool storage_8bit;
|
||||
|
|
|
|||
|
|
@ -3615,6 +3615,13 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
|
|||
|
||||
case SpvCapabilitySampleMaskPostDepthCoverage:
|
||||
spv_check_supported(post_depth_coverage, cap);
|
||||
|
||||
case SpvCapabilityDenormFlushToZero:
|
||||
case SpvCapabilityDenormPreserve:
|
||||
case SpvCapabilitySignedZeroInfNanPreserve:
|
||||
case SpvCapabilityRoundingModeRTE:
|
||||
case SpvCapabilityRoundingModeRTZ:
|
||||
spv_check_supported(float_controls, cap);
|
||||
break;
|
||||
|
||||
case SpvCapabilityPhysicalStorageBufferAddressesEXT:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue