Mesa (master): i965: keep SecHalf flag after register coalescing

Chia-I Wu olv at kemper.freedesktop.org
Wed Oct 9 06:57:38 UTC 2013


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

Author: Chia-I Wu <olv at lunarg.com>
Date:   Fri Sep 27 12:31:32 2013 +0800

i965: keep SecHalf flag after register coalescing

Copy sechalf to the new register, otherwise we would read wrong HW registers.

Signed-off-by: Chia-I Wu <olv at lunarg.com>
Reviewed-by: Eric Anholt <eric at anholt.net>

---

 src/mesa/drivers/dri/i965/brw_fs.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 48ee149..0238336 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -2233,6 +2233,7 @@ fs_visitor::register_coalesce()
                   new_src.abs = 1;
                }
 	       new_src.negate ^= scan_inst->src[i].negate;
+	       new_src.sechalf = scan_inst->src[i].sechalf;
 	       scan_inst->src[i] = new_src;
 	    }
 	 }




More information about the mesa-commit mailing list