spirv: add SpvCapabilityImageGatherBiasLodAMD
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5147>
This commit is contained in:
@@ -85,6 +85,7 @@ struct spirv_supported_capabilities {
|
|||||||
bool amd_trinary_minmax;
|
bool amd_trinary_minmax;
|
||||||
bool amd_image_read_write_lod;
|
bool amd_image_read_write_lod;
|
||||||
bool amd_shader_explicit_vertex_parameter;
|
bool amd_shader_explicit_vertex_parameter;
|
||||||
|
bool amd_image_gather_bias_lod;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct shader_info {
|
typedef struct shader_info {
|
||||||
|
@@ -4061,6 +4061,10 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
|
|||||||
spv_check_supported(amd_fragment_mask, cap);
|
spv_check_supported(amd_fragment_mask, cap);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SpvCapabilityImageGatherBiasLodAMD:
|
||||||
|
spv_check_supported(amd_image_gather_bias_lod, cap);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
vtn_fail("Unhandled capability: %s (%u)",
|
vtn_fail("Unhandled capability: %s (%u)",
|
||||||
spirv_capability_to_string(cap), cap);
|
spirv_capability_to_string(cap), cap);
|
||||||
|
Reference in New Issue
Block a user