From: Kenneth Graunke Date: Thu, 29 Sep 2011 00:37:53 +0000 (-0700) Subject: i965: Set the signed/unsigned type bit in Gen4/5 math messages. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6960f786c8e1bfbaa0d9eb5f43b3b6bfc7135fcf;p=mesa.git i965: Set the signed/unsigned type bit in Gen4/5 math messages. It never mattered before since we only did floating point math. Signed-off-by: Kenneth Graunke Tested-by: Ian Romanick Reviewed-by: Ian Romanick Reviewed-by: Eric Anholt --- diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c index 2d43c3c7844..5c8d63d8e32 100644 --- a/src/mesa/drivers/dri/i965/brw_eu_emit.c +++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c @@ -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);