summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp10
1 files 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 6ed98f53f79..1d2383d0e5b 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);