Mesa (master): i965: Set the signed/unsigned type bit in Gen4/ 5 math messages.

Kenneth Graunke kwg at kemper.freedesktop.org
Mon Oct 3 00:02:37 UTC 2011


Module: Mesa
Branch: master
Commit: 6960f786c8e1bfbaa0d9eb5f43b3b6bfc7135fcf
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6960f786c8e1bfbaa0d9eb5f43b3b6bfc7135fcf

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Sep 28 17:37:53 2011 -0700

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 <kenneth at whitecape.org>
Tested-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>

---

 src/mesa/drivers/dri/i965/brw_eu_emit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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);




More information about the mesa-commit mailing list