freedreno/ir3: don't overwrite wrmask in ir3_SAM
authorJonathan Marek <jonathan@marek.ca>
Tue, 14 Apr 2020 18:22:07 +0000 (14:22 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Apr 2020 19:12:47 +0000 (19:12 +0000)
Fixes (with other patches to allow these tests to run):

dEQP-VK.ycbcr.query.size_lod.vertex.*

Suggested-by: Rob Clark <robclark@gmail.com>
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4557>

src/freedreno/ir3/ir3.h

index b58cd6eb4bec7f596f4c2c357739dee1e2d55cce..54d740e75dbff8bfb055afb9c21beb2db2b39d8c 100644 (file)
@@ -1568,10 +1568,10 @@ ir3_SAM(struct ir3_block *block, opc_t opc, type_t type,
                __ssa_src(sam, samp_tex, IR3_REG_HALF);
        }
        if (src0) {
-               __ssa_src(sam, src0, 0)->wrmask = (1 << (src0->regs_count - 1)) - 1;
+               __ssa_src(sam, src0, 0);
        }
        if (src1) {
-               __ssa_src(sam, src1, 0)->wrmask =(1 << (src1->regs_count - 1)) - 1;
+               __ssa_src(sam, src1, 0);
        }
        sam->cat5.type  = type;