mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 19:10:12 +01:00
spirv: add SpvCapabilityImageReadWriteLodAMD
New SPIR-V capability for SPV_AMD_shader_image_load_store_lod. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
1e29ff7b3d
commit
37bfd854c7
2 changed files with 5 additions and 0 deletions
|
|
@ -81,6 +81,7 @@ struct spirv_supported_capabilities {
|
|||
bool amd_gcn_shader;
|
||||
bool amd_shader_ballot;
|
||||
bool amd_trinary_minmax;
|
||||
bool amd_image_read_write_lod;
|
||||
};
|
||||
|
||||
typedef struct shader_info {
|
||||
|
|
|
|||
|
|
@ -4048,6 +4048,10 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
|
|||
spv_check_supported(vk_memory_model_device_scope, cap);
|
||||
break;
|
||||
|
||||
case SpvCapabilityImageReadWriteLodAMD:
|
||||
spv_check_supported(amd_image_read_write_lod, cap);
|
||||
break;
|
||||
|
||||
default:
|
||||
vtn_fail("Unhandled capability: %s (%u)",
|
||||
spirv_capability_to_string(cap), cap);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue