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:
Samuel Pitoiset
2020-01-03 11:49:24 +01:00
parent 1e29ff7b3d
commit 37bfd854c7
2 changed files with 5 additions and 0 deletions

View File

@@ -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 {

View File

@@ -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);