i965/gen4: Move CC VP to emit() time, since it's only needed by CC's emit().
authorEric Anholt <eric@anholt.net>
Sat, 22 Oct 2011 17:48:26 +0000 (10:48 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 29 Oct 2011 19:16:20 +0000 (12:16 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_cc.c

index c8ef8dbabae78efcc8a186091a2ea712df64ebe6..d1804e36b95d5bd39f076f3ba387403584150ad1 100644 (file)
@@ -38,7 +38,7 @@
 #include "intel_batchbuffer.h"
 
 static void
-prepare_cc_vp(struct brw_context *brw)
+brw_upload_cc_vp(struct brw_context *brw)
 {
    struct gl_context *ctx = &brw->intel.ctx;
    struct brw_cc_viewport *ccv;
@@ -65,7 +65,7 @@ const struct brw_tracked_state brw_cc_vp = {
       .brw = BRW_NEW_BATCH,
       .cache = 0
    },
-   .prepare = prepare_cc_vp
+   .emit = brw_upload_cc_vp
 };
 
 /**