diff options
author | Tom Stellard <[email protected]> | 2013-01-22 21:22:11 +0100 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2013-01-28 18:30:38 +0000 |
commit | 33dc412b8901ec6b693644a40b1cd62a2cde2e99 (patch) | |
tree | dfdd5e5a7bd5b76557e52cf8c2b279a8263d85af /src/gallium/drivers/r600/r600_asm.c | |
parent | 0ba0926861f489261e45404cd57d8f92add9e1ee (diff) |
r600g: Add ar_chan member to struct r600_bytecode
r600_bytecode::ar_chan stores the register channel for the value that
will be loaded into the AR register.
At the moment, this field is only used by the LLVM backend. The default
backend always sets ar_chan = 0.
Diffstat (limited to 'src/gallium/drivers/r600/r600_asm.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_asm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c index 123a9f88e76..1a501f62cba 100644 --- a/src/gallium/drivers/r600/r600_asm.c +++ b/src/gallium/drivers/r600/r600_asm.c @@ -1421,6 +1421,7 @@ static int load_ar_r6xx(struct r600_bytecode *bc) memset(&alu, 0, sizeof(alu)); alu.inst = V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_MOVA_GPR_INT; alu.src[0].sel = bc->ar_reg; + alu.src[0].chan = bc->ar_chan; alu.last = 1; alu.index_mode = INDEX_MODE_LOOP; r = r600_bytecode_add_alu(bc, &alu); @@ -1451,6 +1452,7 @@ static int load_ar(struct r600_bytecode *bc) memset(&alu, 0, sizeof(alu)); alu.inst = BC_INST(bc, V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_MOVA_INT); alu.src[0].sel = bc->ar_reg; + alu.src[0].chan = bc->ar_chan; alu.last = 1; r = r600_bytecode_add_alu(bc, &alu); if (r) |