r600: emit 0 gds_op for tf write.

This field is ignored for tf writes so should be 0.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Dave Airlie 2018-01-10 02:54:33 +00:00
parent 9041730d1c
commit 2bd01adf14
1 changed files with 3 additions and 2 deletions

View File

@ -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) |