i965: Set the signed/unsigned type bit in Gen4/5 math messages.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 29 Sep 2011 00:37:53 +0000 (17:37 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 3 Oct 2011 00:01:07 +0000 (17:01 -0700)
It never mattered before since we only did floating point math.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_eu_emit.c

index 2d43c3c784491440654c91d3116cbf03735f9f84..5c8d63d8e32356c329d6a1434f6376fc7f14c77b 100644 (file)
@@ -1533,7 +1533,7 @@ void brw_math( struct brw_compile *p,
       brw_set_math_message(p,
                           insn,
                           function,
-                          BRW_MATH_INTEGER_UNSIGNED,
+                          src.type == BRW_REGISTER_TYPE_D,
                           precision,
                           saturate,
                           data_type);