ir3: Fix incorrect src flags for samp_tex
authorConnor Abbott <cwabbott0@gmail.com>
Mon, 27 Jul 2020 10:48:37 +0000 (12:48 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 27 Jul 2020 16:38:17 +0000 (16:38 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6086>

src/freedreno/ir3/ir3.h

index a198e4cb92705ca53b976f7cc282bbd4b05228e0..772191d965c9c70ee2e8c1cc72c17d37251ef7b7 100644 (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);