From: Iago Toral Quiroga Date: Fri, 1 Apr 2016 09:54:47 +0000 (+0200) Subject: i965/fs: do pack lowering before simd splitting X-Git-Tag: upstream/17.1.0~8088 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=376d7ee5874615c8e4208de3e70983a002617e26;p=platform%2Fupstream%2Fmesa.git i965/fs: do pack lowering before simd splitting So that we can have gen7 split large writes produced by the pack lowering. Reviewed-by: Francisco Jerez --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 6ed98f5..1d2383d 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -5839,6 +5839,11 @@ fs_visitor::optimize() progress = false; pass_num = 0; + if (OPT(lower_pack)) { + OPT(register_coalesce); + OPT(dead_code_eliminate); + } + OPT(lower_simd_width); /* After SIMD lowering just in case we had to unroll the EOT send. */ @@ -5875,11 +5880,6 @@ fs_visitor::optimize() OPT(dead_code_eliminate); } - if (OPT(lower_pack)) { - OPT(register_coalesce); - OPT(dead_code_eliminate); - } - if (OPT(lower_d2x)) { OPT(opt_copy_propagate); OPT(dead_code_eliminate);