zink: lower txp for array textures

this is also illegal according to spirv spec

fixes #6177

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15510>
This commit is contained in:
Mike Blumenkrantz 2022-03-22 10:59:09 -04:00 committed by Marge Bot
parent 7143a5a147
commit 1e45254b97

View file

@ -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);