From 1e45254b9714aa11e461c0c8192316b9d09655b0 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 22 Mar 2022 10:59:09 -0400 Subject: [PATCH] zink: lower txp for array textures this is also illegal according to spirv spec fixes #6177 Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_compiler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/zink/zink_compiler.c b/src/gallium/drivers/zink/zink_compiler.c index 9e403d80344..50d23cd98ac 100644 --- a/src/gallium/drivers/zink/zink_compiler.c +++ b/src/gallium/drivers/zink/zink_compiler.c @@ -2120,6 +2120,7 @@ zink_shader_finalize(struct pipe_screen *pscreen, void *nirptr) */ tex_opts.lower_txp = BITFIELD_BIT(GLSL_SAMPLER_DIM_CUBE) | BITFIELD_BIT(GLSL_SAMPLER_DIM_MS); + tex_opts.lower_txp_array = true; if (!screen->info.feats.features.shaderImageGatherExtended) tex_opts.lower_tg4_offsets = true; NIR_PASS_V(nir, nir_lower_tex, &tex_opts);