ir3: Fix incorrect src flags for samp_tex

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6086>
This commit is contained in:
Connor Abbott
2020-07-27 12:48:37 +02:00
committed by Marge Bot
parent e73a8a2b39
commit 8bc060ab81
+1 -1
View File
@@ -1681,7 +1681,7 @@ ir3_SAM(struct ir3_block *block, opc_t opc, type_t type,
sam->flags |= flags;
__ssa_dst(sam)->wrmask = wrmask;
if (flags & IR3_INSTR_S2EN) {
__ssa_src(sam, samp_tex, IR3_REG_HALF);
__ssa_src(sam, samp_tex, (flags & IR3_INSTR_B) ? 0 : IR3_REG_HALF);
}
if (src0) {
__ssa_src(sam, src0, 0);