aco: set MIMG unrm for GL_TEXTURE_RECTANGLE

This fixes VDPAU compositor shaders compiled by ACO.

Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26244>
This commit is contained in:
Qiang Yu 2023-11-17 10:36:42 +08:00 committed by Marge Bot
parent dbbf566588
commit 695fc67baa

View file

@ -9754,6 +9754,7 @@ visit_tex(isel_context* ctx, nir_tex_instr* instr)
tex->dim = dim;
tex->dmask = dmask & 0xf;
tex->da = da;
tex->unrm = instr->sampler_dim == GLSL_SAMPLER_DIM_RECT;
tex->tfe = instr->is_sparse;
tex->d16 = d16;
tex->a16 = a16;