zink: emit sparse residency cap in ntv

Acked-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14381>
This commit is contained in:
Mike Blumenkrantz 2022-01-14 12:01:15 -05:00 committed by Marge Bot
parent d76694a18f
commit ac30051a5d

View file

@ -3902,6 +3902,7 @@ nir_to_spirv(struct nir_shader *s, const struct zink_shader_info *sinfo, uint32_
if (!ctx.defs)
goto fail;
if (sinfo->have_sparse) {
spirv_builder_emit_cap(&ctx.builder, SpvCapabilitySparseResidency);
/* this could be huge, so only alloc if needed since it's extremely unlikely to
* ever be used by anything except cts
*/