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:
Samuel Pitoiset
2020-05-19 14:50:57 +02:00
parent c7943343a0
commit dd39bf52b0
2 changed files with 5 additions and 0 deletions

View File

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

View File

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