Mesa (master): i965/vs: Pack uniform registers before optimization
Eric Anholt
anholt at kemper.freedesktop.org
Fri Sep 9 04:40:33 UTC 2011
Module: Mesa
Branch: master
Commit: f3ed973f53d2a621d915de2cdc8e09c0755db016
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f3ed973f53d2a621d915de2cdc8e09c0755db016
Author: Eric Anholt <eric at anholt.net>
Date: Tue Sep 6 22:13:20 2011 -0700
i965/vs: Pack uniform registers before optimization
We don't expect uniform accesses to generally go away from being dead
code at this point, and we will want to have uniforms packed before
spilling them out to pull constants when we are forced to do that.
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Acked-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp b/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
index 30bb0f6..3567949 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
@@ -607,6 +607,7 @@ vec4_visitor::run()
*/
move_grf_array_access_to_scratch();
move_uniform_array_access_to_pull_constants();
+ pack_uniform_registers();
bool progress;
do {
@@ -614,7 +615,6 @@ vec4_visitor::run()
progress = dead_code_eliminate() || progress;
} while (progress);
- pack_uniform_registers();
if (failed)
return false;
More information about the mesa-commit
mailing list