From a26e17a36503c5387447cd560c81dbea6f2d89f9 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 27 Sep 2013 12:31:32 +0800 Subject: [PATCH] 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 Reviewed-by: Eric Anholt --- src/mesa/drivers/dri/i965/brw_fs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 48ee1499d7d..02383363d43 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; } } -- 2.30.2