r600: Add support for loading index register from other than chan X
Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
This commit is contained in:
@@ -189,7 +189,7 @@ int egcm_load_index_reg(struct r600_bytecode *bc, unsigned id, bool inside_alu_c
|
||||
memset(&alu, 0, sizeof(alu));
|
||||
alu.op = ALU_OP1_MOVA_INT;
|
||||
alu.src[0].sel = bc->index_reg[id];
|
||||
alu.src[0].chan = 0;
|
||||
alu.src[0].chan = bc->index_reg_chan[id];
|
||||
if (bc->chip_class == CAYMAN)
|
||||
alu.dst.sel = id == 0 ? CM_V_SQ_MOVA_DST_CF_IDX0 : CM_V_SQ_MOVA_DST_CF_IDX1;
|
||||
|
||||
|
||||
@@ -278,6 +278,7 @@ struct r600_bytecode {
|
||||
unsigned r6xx_nop_after_rel_dst;
|
||||
bool index_loaded[2];
|
||||
unsigned index_reg[2]; /* indexing register CF_INDEX_[01] */
|
||||
unsigned index_reg_chan[2]; /* indexing register chanel CF_INDEX_[01] */
|
||||
unsigned debug_id;
|
||||
struct r600_isa* isa;
|
||||
struct r600_bytecode_output pending_outputs[5];
|
||||
|
||||
Reference in New Issue
Block a user