[Mesa-dev] [PATCH 5/6] i965/fs: do pack lowering before simd splitting

Samuel Iglesias Gonsálvez siglesias at igalia.com
Wed Jul 6 10:10:01 UTC 2016


From: Iago Toral Quiroga <itoral at igalia.com>

So that we can have gen7 split large writes produced by the pack lowering.
---
 src/mesa/drivers/dri/i965/brw_fs.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index caf88d1..0d4eb51 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -5830,6 +5830,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. */
@@ -5866,11 +5871,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);
-- 
2.7.4



More information about the mesa-dev mailing list