From: Kenneth Graunke Date: Sat, 3 Sep 2011 19:39:16 +0000 (-0700) Subject: i965: Fix disassembly for intdiv/intmod math functions. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8de3314f636f57145e008697df34560d3badf41c;p=mesa.git i965: Fix disassembly for intdiv/intmod math functions. The opcodes and strings were reversed. Quotient means division, and modulus means remainder. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c index 927b0b4acc9..57821066941 100644 --- a/src/mesa/drivers/dri/i965/brw_disasm.c +++ b/src/mesa/drivers/dri/i965/brw_disasm.c @@ -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] = {