Mesa (master): r600g: shift integer ops are trans unit only on r600.

Dave Airlie airlied at kemper.freedesktop.org
Sun Jan 22 17:28:31 UTC 2012


Module: Mesa
Branch: master
Commit: b9c706c8c51c15af31814904d5fa1afe96b0496a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b9c706c8c51c15af31814904d5fa1afe96b0496a

Author: Dave Airlie <airlied at redhat.com>
Date:   Sun Jan 22 17:24:29 2012 +0000

r600g: shift integer ops are trans unit only on r600.

Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/gallium/drivers/r600/r600_asm.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index c0e33fa..a888704 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -493,6 +493,7 @@ static int is_alu_trans_unit_inst(struct r600_bytecode *bc, struct r600_bytecode
 
 	switch (bc->chip_class) {
 	case R600:
+		return alu->is_op3 ? RANGE(0x0C, 0x0C) : RANGE(0x60, 0x79);
 	case R700:
 		return alu->is_op3 ? RANGE(0x0C, 0x0C) : RANGE(0x60, 0x6F) | RANGE(0x73, 0x79);
 	case EVERGREEN:




More information about the mesa-commit mailing list