[Mesa-dev] [PATCH 1/2] i965/fs: Call calculate_cfg() before optimize().
Matt Turner
mattst88 at gmail.com
Fri Feb 13 10:54:05 PST 2015
The CFG is fundamental to the FS IR, not merely a piece of optimization.
---
src/mesa/drivers/dri/i965/brw_fs.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index c7c6acc..41473fa 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -3548,8 +3548,6 @@ fs_visitor::optimize()
{
const char *stage_name = stage == MESA_SHADER_VERTEX ? "vs" : "fs";
- calculate_cfg();
-
split_virtual_grfs();
move_uniform_array_access_to_pull_constants();
@@ -3725,6 +3723,8 @@ fs_visitor::run_vs()
emit_urb_writes();
+ calculate_cfg();
+
optimize();
assign_curb_setup();
@@ -3804,6 +3804,8 @@ fs_visitor::run_fs()
emit_fb_writes();
+ calculate_cfg();
+
optimize();
assign_curb_setup();
--
2.0.5
More information about the mesa-dev
mailing list