diff options
author | Eric Anholt <eric@anholt.net> | 2009-05-05 14:05:54 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-05-06 06:44:14 -0700 |
commit | 9490d86808300e5819941a40784e272c290e05ee (patch) | |
tree | d01298b6d85f1352ec63fa851158a20590a98417 /src/mesa/drivers/dri/i965/brw_state_upload.c | |
parent | d277547dc69c9004097afdc2ca56a7aed85c6f54 (diff) |
i965: Disentangle VS constant surface state from WM surface state.
Also, only create VS surface state if there's a VS constant buffer to be
uploaded, and set the contents of the buffer at the same time as creation.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_state_upload.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_state_upload.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c b/src/mesa/drivers/dri/i965/brw_state_upload.c index 2641bcb2aa..4c1ffe81c9 100644 --- a/src/mesa/drivers/dri/i965/brw_state_upload.c +++ b/src/mesa/drivers/dri/i965/brw_state_upload.c @@ -62,7 +62,8 @@ const struct brw_tracked_state *atoms[] = &brw_cc_vp, &brw_cc_unit, - &brw_wm_surfaces, /* must do before samplers */ + &brw_vs_surfaces, /* must do before unit */ + &brw_wm_surfaces, /* must do before samplers and unit */ &brw_wm_samplers, &brw_wm_unit, |