Module: Mesa Branch: main Commit: 695fc67baa342a2e4c0f112fc851d8341a77b549 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=695fc67baa342a2e4c0f112fc851d8341a77b549
Author: Qiang Yu <[email protected]> Date: Fri Nov 17 10:36:42 2023 +0800 aco: set MIMG unrm for GL_TEXTURE_RECTANGLE This fixes VDPAU compositor shaders compiled by ACO. Reviewed-by: Georg Lehmann <[email protected]> Signed-off-by: Qiang Yu <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26244> --- src/amd/compiler/aco_instruction_selection.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index c40f05ceb96..4eef843d7c5 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -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;
