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_sf.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_sf.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_sf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_sf.c b/src/mesa/drivers/dri/i965/brw_sf.c index c11daf68359..54c27f98862 100644 --- a/src/mesa/drivers/dri/i965/brw_sf.c +++ b/src/mesa/drivers/dri/i965/brw_sf.c @@ -120,7 +120,8 @@ static void compile_sf_prog( struct brw_context *brw, /* Calculate interpolants for triangle and line rasterization. */ -static void upload_sf_prog(struct brw_context *brw) +static void +brw_upload_sf_prog(struct brw_context *brw) { struct gl_context *ctx = &brw->intel.ctx; struct brw_sf_prog_key key; @@ -195,6 +196,6 @@ const struct brw_tracked_state brw_sf_prog = { .brw = (BRW_NEW_REDUCED_PRIMITIVE), .cache = CACHE_NEW_VS_PROG }, - .prepare = upload_sf_prog + .emit = brw_upload_sf_prog }; |