diff options
author | Dave Airlie <[email protected]> | 2016-03-31 15:46:30 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-06-26 16:23:20 +1000 |
commit | b050b91e3350ede311521080ba4f555d4a79a8e1 (patch) | |
tree | 5601d6fd6b5afa50aa0ae5292ba43c0b88f4b317 /src/gallium | |
parent | 4a34f3244abb13d61a84ec7f4101392b2574f4df (diff) |
r600: route indirect address register correctly for vtx fetches.
This was found during writing the images code, we need to
make sure we route the correct index register.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/r600/r600_asm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c index 3dcbde0fe5b..27f564768e0 100644 --- a/src/gallium/drivers/r600/r600_asm.c +++ b/src/gallium/drivers/r600/r600_asm.c @@ -1348,7 +1348,7 @@ int r600_bytecode_add_vtx(struct r600_bytecode *bc, const struct r600_bytecode_v /* Load index register if required */ if (bc->chip_class >= EVERGREEN) { if (vtx->buffer_index_mode) - egcm_load_index_reg(bc, 0, false); + egcm_load_index_reg(bc, vtx->buffer_index_mode - 1, false); } /* cf can contains only alu or only vtx or only tex */ |