From 6960f786c8e1bfbaa0d9eb5f43b3b6bfc7135fcf Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 28 Sep 2011 17:37:53 -0700 Subject: [PATCH] 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 --- src/mesa/drivers/dri/i965/brw_eu_emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c index 2d43c3c..5c8d63d 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); -- 2.7.4