From dd39bf52b0783c6a20acb306eae48958ed22df63 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 19 May 2020 14:50:57 +0200 Subject: spirv: add SpvCapabilityImageGatherBiasLodAMD Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/compiler/shader_info.h | 1 + src/compiler/spirv/spirv_to_nir.c | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'src') diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h index 2e22614b75b..d7577472578 100644 --- a/src/compiler/shader_info.h +++ b/src/compiler/shader_info.h @@ -85,6 +85,7 @@ struct spirv_supported_capabilities { bool amd_trinary_minmax; bool amd_image_read_write_lod; bool amd_shader_explicit_vertex_parameter; + bool amd_image_gather_bias_lod; }; typedef struct shader_info { diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index fd3f4d01104..590f325a4b9 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -4061,6 +4061,10 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode, spv_check_supported(amd_fragment_mask, cap); break; + case SpvCapabilityImageGatherBiasLodAMD: + spv_check_supported(amd_image_gather_bias_lod, cap); + break; + default: vtn_fail("Unhandled capability: %s (%u)", spirv_capability_to_string(cap), cap); -- cgit v1.2.3