diff options
author | Eric Anholt <[email protected]> | 2015-06-23 18:04:00 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-06-23 18:40:50 -0700 |
commit | 0f69d59b1c8f5314c1abe18659b96adcfc51a0e5 (patch) | |
tree | 11e2b216cc58981ec789d24aa6420c8125a114fe /src/gallium/drivers/vc4 | |
parent | af83eb25812fbda89de62b58f9e59a5408ad4654 (diff) |
vc4: Make a helper for TLB color writes, too.
We've done so for all the other QIR instruction generation in this file.
Diffstat (limited to 'src/gallium/drivers/vc4')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_program.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qir.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c index c620a4a351f..2061631dc9e 100644 --- a/src/gallium/drivers/vc4/vc4_program.c +++ b/src/gallium/drivers/vc4/vc4_program.c @@ -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 diff --git a/src/gallium/drivers/vc4/vc4_qir.h b/src/gallium/drivers/vc4/vc4_qir.h index 732cfd0b306..2f1e261f880 100644 --- a/src/gallium/drivers/vc4/vc4_qir.h +++ b/src/gallium/drivers/vc4/vc4_qir.h @@ -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) |