mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
spirv: Add support for SpvCapabilityStorageImageReadWithoutFormat.
Signed-off-by: Bas Nieuwenhuizen <basni@google.com> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
53873697e4
commit
501a4c0d73
2 changed files with 5 additions and 1 deletions
|
|
@ -49,6 +49,7 @@ struct nir_spirv_supported_extensions {
|
|||
bool image_ms_array;
|
||||
bool tessellation;
|
||||
bool draw_parameters;
|
||||
bool image_read_without_format;
|
||||
bool image_write_without_format;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -2663,7 +2663,6 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
|
|||
case SpvCapabilitySparseResidency:
|
||||
case SpvCapabilityMinLod:
|
||||
case SpvCapabilityTransformFeedback:
|
||||
case SpvCapabilityStorageImageReadWithoutFormat:
|
||||
vtn_warn("Unsupported SPIR-V capability: %s",
|
||||
spirv_capability_to_string(cap));
|
||||
break;
|
||||
|
|
@ -2699,6 +2698,10 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
|
|||
spv_check_supported(draw_parameters, cap);
|
||||
break;
|
||||
|
||||
case SpvCapabilityStorageImageReadWithoutFormat:
|
||||
spv_check_supported(image_read_without_format, cap);
|
||||
break;
|
||||
|
||||
case SpvCapabilityStorageImageWriteWithoutFormat:
|
||||
spv_check_supported(image_write_without_format, cap);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue