aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2020-05-19 14:50:57 +0200
committerSamuel Pitoiset <[email protected]>2020-05-25 08:51:10 +0200
commitdd39bf52b0783c6a20acb306eae48958ed22df63 (patch)
tree54f9d1f37445925dd2b20b322f3755fee4b85147 /src
parentc7943343a0fc2463987f667658a257b74cec1782 (diff)
spirv: add SpvCapabilityImageGatherBiasLodAMD
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5147>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/shader_info.h1
-rw-r--r--src/compiler/spirv/spirv_to_nir.c4
2 files changed, 5 insertions, 0 deletions
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);