[Mesa-dev] [PATCH 16/33] i965: Move WM pull constant setup to emit() time.

Eric Anholt eric at anholt.net
Mon Oct 24 14:17:03 PDT 2011


It's needed by the WM surface state setup, which is now emit().
---
 src/mesa/drivers/dri/i965/brw_wm_surface_state.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
index 782efd5..04dc389 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
@@ -321,7 +321,7 @@ brw_create_constant_surface(struct brw_context *brw,
  * state atom.
  */
 static void
-prepare_wm_pull_constants(struct brw_context *brw)
+brw_upload_wm_pull_constants(struct brw_context *brw)
 {
    struct gl_context *ctx = &brw->intel.ctx;
    struct intel_context *intel = &brw->intel;
@@ -365,7 +365,7 @@ const struct brw_tracked_state brw_wm_constants = {
       .brw = (BRW_NEW_FRAGMENT_PROGRAM),
       .cache = 0
    },
-   .prepare = prepare_wm_pull_constants,
+   .emit = brw_upload_wm_pull_constants,
 };
 
 /**
-- 
1.7.7



More information about the mesa-dev mailing list