ir3: Remove redundant samp_tex validation
authorConnor Abbott <cwabbott0@gmail.com>
Mon, 27 Jul 2020 10:47:43 +0000 (12:47 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 27 Jul 2020 16:38:17 +0000 (16:38 +0000)
It's already checked in ir3_validate. This way we don't have to fix it
up for bindless.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6086>

src/freedreno/ir3/ir3.c

index c6d78b2e9c5357d7fe61cc84bfe9d070c772fee0..b170093ce4304c682a3ecb375b6a59bdcab20702 100644 (file)
@@ -488,7 +488,6 @@ static int emit_cat5(struct ir3_instruction *instr, void *ptr,
 
        if (instr->flags & IR3_INSTR_S2EN) {
                struct ir3_register *samp_tex = instr->regs[1];
-               iassert(samp_tex->flags & IR3_REG_HALF);
                cat5->s2en_bindless.src3 = reg(samp_tex, info, instr->repeat,
                                                                           (instr->flags & IR3_INSTR_B) ? 0 : IR3_REG_HALF);
                if (instr->flags & IR3_INSTR_B) {