i965: Move WM pull constant setup to emit() time.
authorEric Anholt <eric@anholt.net>
Sat, 22 Oct 2011 18:07:40 +0000 (11:07 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 29 Oct 2011 19:16:39 +0000 (12:16 -0700)
It's needed by the WM surface state setup, which is now emit().

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

index 782efd526624ebb7fac23882588646623a39232f..04dc3899a9137f70867e087e1cacf76b652fd76a 100644 (file)
@@ -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,
 };
 
 /**