vc4: Make a helper for TLB color writes, too.
authorEric Anholt <eric@anholt.net>
Wed, 24 Jun 2015 01:04:00 +0000 (18:04 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 24 Jun 2015 01:40:50 +0000 (18:40 -0700)
We've done so for all the other QIR instruction generation in this file.

src/gallium/drivers/vc4/vc4_program.c
src/gallium/drivers/vc4/vc4_qir.h

index c620a4a351f45fead60518fc01113e5a37552ee9..2061631dc9e1f6bd8a1e885762db766d03bcec83 100644 (file)
@@ -1515,7 +1515,7 @@ emit_frag_end(struct vc4_compile *c)
                 qir_TLB_Z_WRITE(c, z);
         }
 
-        qir_emit(c, qir_inst(QOP_TLB_COLOR_WRITE, c->undef, color, c->undef));
+        qir_TLB_COLOR_WRITE(c, color);
 }
 
 static void
index 732cfd0b3069ce9c7d0ec402fa7fdb4580b64413..2f1e261f8809a56a4b997b8c6cf19d4f4636a509 100644 (file)
@@ -523,6 +523,7 @@ QIR_ALU0(FRAG_W)
 QIR_ALU0(FRAG_REV_FLAG)
 QIR_ALU0(TEX_RESULT)
 QIR_ALU0(TLB_COLOR_READ)
+QIR_NODST_1(TLB_COLOR_WRITE)
 QIR_NODST_1(TLB_Z_WRITE)
 QIR_NODST_1(TLB_DISCARD_SETUP)
 QIR_NODST_1(TLB_STENCIL_SETUP)