ir3: LDC also has a destination
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 20 Mar 2020 14:25:59 +0000 (15:25 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 9 Apr 2020 15:56:55 +0000 (15:56 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4358>

src/freedreno/ir3/ir3.c

index 7af46055c02d59c8181df400d98747f88dace163..5f43da8b4224c11fdb01d7d70b448abc9e5eac1b 100644 (file)
@@ -525,7 +525,7 @@ static int emit_cat6_a6xx(struct ir3_instruction *instr, void *ptr,
 {
        struct ir3_register *src1, *src2;
        instr_cat6_a6xx_t *cat6 = ptr;
-       bool has_dest = (instr->opc == OPC_LDIB);
+       bool has_dest = (instr->opc == OPC_LDIB || instr->opc == OPC_LDC);
 
        /* first reg should be SSBO binding point: */
        iassert(instr->regs[1]->flags & IR3_REG_IMMED);