diff options
author | Eric Anholt <[email protected]> | 2011-10-22 11:33:54 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-10-29 12:17:03 -0700 |
commit | dc9a753f6687133d2d057597e5af86abcdc56781 (patch) | |
tree | 52e45082ea71f65dd4274954728f8ce195f4d15b /src/mesa/drivers/dri/i965/brw_gs.c | |
parent | 0969568fce93bde927797ed4eeae0df6546806a3 (diff) |
i965: Move program compile to emit() time.
Only 4 other prepare() functions are left, which don't rely on this.
Reviewed-by: Kenneth Graunke <[email protected]>
Acked-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_gs.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_gs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_gs.c b/src/mesa/drivers/dri/i965/brw_gs.c index 624fa1438bb..91f8d0b5dcb 100644 --- a/src/mesa/drivers/dri/i965/brw_gs.c +++ b/src/mesa/drivers/dri/i965/brw_gs.c @@ -171,7 +171,8 @@ static void populate_key( struct brw_context *brw, /* Calculate interpolants for triangle and line rasterization. */ -static void prepare_gs_prog(struct brw_context *brw) +static void +brw_upload_gs_prog(struct brw_context *brw) { struct brw_gs_prog_key key; /* Populate the key: @@ -200,5 +201,5 @@ const struct brw_tracked_state brw_gs_prog = { .brw = BRW_NEW_PRIMITIVE, .cache = CACHE_NEW_VS_PROG }, - .prepare = prepare_gs_prog + .emit = brw_upload_gs_prog }; |