Mesa (master): r600g: add more missing instructions to r600_bc_get_num_operands

Christian König deathsimple at kemper.freedesktop.org
Fri Jan 14 17:47:00 UTC 2011


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

Author: Christian König <deathsimple at vodafone.de>
Date:   Fri Jan 14 18:46:11 2011 +0100

r600g: add more missing instructions to r600_bc_get_num_operands

---

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

diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index 52dc068..2d0d277 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -64,18 +64,22 @@ static inline unsigned int r600_bc_get_num_operands(struct r600_bc_alu *alu)
 	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_CUBE:
 		return 2;
 
-	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_MOV: 
+	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_MOV:
+	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_MOVA:
 	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_MOVA_FLOOR:
+	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_MOVA_INT:
 	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_FRACT:
 	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_FLOOR:
 	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_TRUNC:
 	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_EXP_IEEE:
 	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_LOG_CLAMPED:
 	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_LOG_IEEE:
+	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_RECIP_CLAMPED:
 	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_RECIP_IEEE:
 	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_RECIPSQRT_CLAMPED:
 	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_RECIPSQRT_IEEE:
 	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_FLT_TO_INT:
+	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_FLT_TO_INT_FLOOR:
 	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_SIN:
 	case V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_COS:
 		return 1;




More information about the mesa-commit mailing list