i965: keep SecHalf flag after register coalescing
authorChia-I Wu <olv@lunarg.com>
Fri, 27 Sep 2013 04:31:32 +0000 (12:31 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Wed, 9 Oct 2013 06:49:11 +0000 (14:49 +0800)
Copy sechalf to the new register, otherwise we would read wrong HW registers.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs.cpp

index 48ee1499d7d7fb08d8405a7234b03ff3326b19c5..02383363d43cda5820de95b0ca7844bec999664b 100644 (file)
@@ -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;
            }
         }