vtn: support SpvCapabilitySparseResidency
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7774>
This commit is contained in:
@@ -76,6 +76,7 @@ struct spirv_supported_capabilities {
|
|||||||
bool float_controls;
|
bool float_controls;
|
||||||
bool shader_clock;
|
bool shader_clock;
|
||||||
bool shader_viewport_index_layer;
|
bool shader_viewport_index_layer;
|
||||||
|
bool sparse_residency;
|
||||||
bool stencil_export;
|
bool stencil_export;
|
||||||
bool storage_8bit;
|
bool storage_8bit;
|
||||||
bool storage_16bit;
|
bool storage_16bit;
|
||||||
|
@@ -4256,11 +4256,14 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case SpvCapabilityLinkage:
|
case SpvCapabilityLinkage:
|
||||||
case SpvCapabilitySparseResidency:
|
|
||||||
vtn_warn("Unsupported SPIR-V capability: %s",
|
vtn_warn("Unsupported SPIR-V capability: %s",
|
||||||
spirv_capability_to_string(cap));
|
spirv_capability_to_string(cap));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SpvCapabilitySparseResidency:
|
||||||
|
spv_check_supported(sparse_residency, cap);
|
||||||
|
break;
|
||||||
|
|
||||||
case SpvCapabilityMinLod:
|
case SpvCapabilityMinLod:
|
||||||
spv_check_supported(min_lod, cap);
|
spv_check_supported(min_lod, cap);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user