i965/fs: do pack lowering before simd splitting
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 1 Apr 2016 09:54:47 +0000 (11:54 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Wed, 13 Jul 2016 05:09:41 +0000 (07:09 +0200)
So that we can have gen7 split large writes produced by the pack lowering.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_fs.cpp

index 6ed98f53f79afc3b3c88c3db9aa5d508db44801f..1d2383d0e5bf48d95983b5b5e162628a6927ca19 100644 (file)
@@ -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);