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:
Rhys Perry
2020-11-23 14:14:57 +00:00
committed by Marge Bot
parent 7d1d4acbd5
commit f7a5b8ed35
2 changed files with 5 additions and 1 deletions

View File

@@ -76,6 +76,7 @@ struct spirv_supported_capabilities {
bool float_controls;
bool shader_clock;
bool shader_viewport_index_layer;
bool sparse_residency;
bool stencil_export;
bool storage_8bit;
bool storage_16bit;

View File

@@ -4256,11 +4256,14 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
break;
case SpvCapabilityLinkage:
case SpvCapabilitySparseResidency:
vtn_warn("Unsupported SPIR-V capability: %s",
spirv_capability_to_string(cap));
break;
case SpvCapabilitySparseResidency:
spv_check_supported(sparse_residency, cap);
break;
case SpvCapabilityMinLod:
spv_check_supported(min_lod, cap);
break;