[Mesa-dev] [PATCH 18/33] i965: Move VS pull constant upload to emit() time.

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


Only needed by the emit() for VS surfaces.
---
 src/mesa/drivers/dri/i965/brw_vs_surface_state.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_vs_surface_state.c b/src/mesa/drivers/dri/i965/brw_vs_surface_state.c
index 0237b58..f838daa 100644
--- a/src/mesa/drivers/dri/i965/brw_vs_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_vs_surface_state.c
@@ -42,7 +42,7 @@
  * state atom.
  */
 static void
-prepare_vs_constants(struct brw_context *brw)
+brw_upload_vs_pull_constants(struct brw_context *brw)
 {
    struct gl_context *ctx = &brw->intel.ctx;
    struct intel_context *intel = &brw->intel;
@@ -101,7 +101,7 @@ const struct brw_tracked_state brw_vs_constants = {
       .brw = (BRW_NEW_VERTEX_PROGRAM),
       .cache = CACHE_NEW_VS_PROG,
    },
-   .prepare = prepare_vs_constants,
+   .emit = brw_upload_vs_pull_constants,
 };
 
 /**
-- 
1.7.7



More information about the mesa-dev mailing list