i965: Move VS pull constant upload to emit() time.
authorEric Anholt <eric@anholt.net>
Sat, 22 Oct 2011 18:14:02 +0000 (11:14 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 29 Oct 2011 19:16:45 +0000 (12:16 -0700)
Only needed by the emit() for VS surfaces.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_vs_surface_state.c

index 0237b585b64d1bbac70e53e8cfd4edfc1d51afe2..f838daa2b072d4b9a3202d872696ac4b6f81985d 100644 (file)
@@ -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,
 };
 
 /**