i965/gen4: Move CURBE offset calculation to emit() time.
authorEric Anholt <eric@anholt.net>
Sat, 22 Oct 2011 18:32:05 +0000 (11:32 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 29 Oct 2011 19:17:01 +0000 (12:17 -0700)
This is consumed by the unit state.

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

index 86a39d982ff90256a77454f81e231be3c82f3b44..93ee709130956edd78ab36ce7932cccc9d05ad77 100644 (file)
@@ -133,7 +133,7 @@ const struct brw_tracked_state brw_curbe_offsets = {
       .brw  = BRW_NEW_VERTEX_PROGRAM | BRW_NEW_CONTEXT,
       .cache = CACHE_NEW_WM_PROG
    },
-   .prepare = calculate_curbe_offsets
+   .emit = calculate_curbe_offsets
 };