freedreno/ir3: don't overwrite wrmask in ir3_SAM

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>
This commit is contained in:
Jonathan Marek 2020-04-14 14:22:07 -04:00 committed by Marge Bot
parent aeb5b9cebf
commit 23be216071
1 changed files with 2 additions and 2 deletions

View 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;