i965: Fix disassembly for intdiv/intmod math functions.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 3 Sep 2011 19:39:16 +0000 (12:39 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 7 Sep 2011 17:43:09 +0000 (10:43 -0700)
The opcodes and strings were reversed.  Quotient means division, and
modulus means remainder.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_disasm.c

index 927b0b4acc930de90861d17be76b93686b31db87..57821066941c2a198625eb1d6d3f3776defc665e 100644 (file)
@@ -350,8 +350,8 @@ char *math_function[16] = {
     [BRW_MATH_FUNCTION_TAN] = "tan",
     [BRW_MATH_FUNCTION_POW] = "pow",
     [BRW_MATH_FUNCTION_INT_DIV_QUOTIENT_AND_REMAINDER] = "intdivmod",
-    [BRW_MATH_FUNCTION_INT_DIV_QUOTIENT] = "intmod",
-    [BRW_MATH_FUNCTION_INT_DIV_REMAINDER] = "intdiv",
+    [BRW_MATH_FUNCTION_INT_DIV_QUOTIENT] = "intdiv",
+    [BRW_MATH_FUNCTION_INT_DIV_REMAINDER] = "intmod",
 };
 
 char *math_saturate[2] = {