summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2018-01-10 02:54:33 +0000
committerDave Airlie <[email protected]>2018-01-18 03:34:36 +0000
commit2bd01adf146b3a16179a5b1305444305ce26ed2e (patch)
treec7bc0e74eb5c7c39bb4c6f82076371fdd9321758
parent9041730d1c0f5bb88866c4448306eaffb0f4d761 (diff)
r600: emit 0 gds_op for tf write.
This field is ignored for tf writes so should be 0. Reviewed-by: Roland Scheidegger <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r--src/gallium/drivers/r600/eg_asm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/eg_asm.c b/src/gallium/drivers/r600/eg_asm.c
index 8f9d1b85f23..f8651bdff58 100644
--- a/src/gallium/drivers/r600/eg_asm.c
+++ b/src/gallium/drivers/r600/eg_asm.c
@@ -225,9 +225,10 @@ int eg_bytecode_gds_build(struct r600_bytecode *bc, struct r600_bytecode_gds *gd
{
unsigned gds_op = (r600_isa_fetch_opcode(bc->isa->hw_class, gds->op) >> 8) & 0x3f;
unsigned opcode;
- if (gds->op == FETCH_OP_TF_WRITE)
+ if (gds->op == FETCH_OP_TF_WRITE) {
opcode = 5;
- else
+ gds_op = 0;
+ } else
opcode = 4;
bc->bytecode[id++] = S_SQ_MEM_GDS_WORD0_MEM_INST(2) |
S_SQ_MEM_GDS_WORD0_MEM_OP(opcode) |