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 */