Module: Mesa Branch: main Commit: ac30051a5de813072e0b4f3ae399681f8535d626 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ac30051a5de813072e0b4f3ae399681f8535d626
Author: Mike Blumenkrantz <[email protected]> Date: Fri Jan 14 12:01:15 2022 -0500 zink: emit sparse residency cap in ntv Acked-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14381> --- src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c index 8e849482c8e..1ccae1a88d2 100644 --- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c +++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c @@ -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 */
