summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_vs.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-01-18 13:27:47 -0800
committerEric Anholt <eric@anholt.net>2010-01-19 11:31:05 -0800
commit62a96f74c9a1fd07301d349e4181a7212fc7d45c (patch)
treedfd4aa4ec73de7948d4f32dee704af484c87d32e /src/mesa/drivers/dri/i965/brw_vs.c
parent7d4e674b212c9dc6408c13913a399bd4a2b9a1e3 (diff)
i965: Allow for variable-sized auxdata in the state cache.
Everything has been constant-sized until now, but constant buffer handling changes will make us want some additional variable sized array.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vs.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vs.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c
index fd055e225e..a66927235e 100644
--- a/src/mesa/drivers/dri/i965/brw_vs.c
+++ b/src/mesa/drivers/dri/i965/brw_vs.c
@@ -74,12 +74,13 @@ static void do_vs_prog( struct brw_context *brw,
program = brw_get_program(&c.func, &program_size);
dri_bo_unreference(brw->vs.prog_bo);
- brw->vs.prog_bo = brw_upload_cache( &brw->cache, BRW_VS_PROG,
- &c.key, sizeof(c.key),
- NULL, 0,
- program, program_size,
- &c.prog_data,
- &brw->vs.prog_data );
+ brw->vs.prog_bo = brw_upload_cache_with_auxdata(&brw->cache, BRW_VS_PROG,
+ &c.key, sizeof(c.key),
+ NULL, 0,
+ program, program_size,
+ &c.prog_data,
+ sizeof(c.prog_data),
+ &brw->vs.prog_data);
}