From: Chia-I Wu Date: Fri, 27 Sep 2013 04:31:32 +0000 (+0800) Subject: i965: keep SecHalf flag after register coalescing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a26e17a36503c5387447cd560c81dbea6f2d89f9;p=mesa.git 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 --- 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; } }