summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_sf_state.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-11-05 10:25:34 -0800
committerEric Anholt <eric@anholt.net>2009-11-06 11:37:32 -0800
commit8395da2e8af40367714c70afe299568272f36cc8 (patch)
treed0e9c156972b6f257df14efd7a2abc55644ef8fd /src/mesa/drivers/dri/i965/brw_sf_state.c
parent1166294d1dd253da63620235100a11f1981aa86d (diff)
i965: Always pass the size argument to brw_cache_data.
This keeps the individual state files from having to export their structures for brw_state_cache initialization.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_sf_state.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_sf_state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_sf_state.c b/src/mesa/drivers/dri/i965/brw_sf_state.c
index bc0f076073..d6b47b5d8d 100644
--- a/src/mesa/drivers/dri/i965/brw_sf_state.c
+++ b/src/mesa/drivers/dri/i965/brw_sf_state.c
@@ -93,7 +93,8 @@ static void upload_sf_vp(struct brw_context *brw)
}
dri_bo_unreference(brw->sf.vp_bo);
- brw->sf.vp_bo = brw_cache_data( &brw->cache, BRW_SF_VP, &sfv, NULL, 0 );
+ brw->sf.vp_bo = brw_cache_data(&brw->cache, BRW_SF_VP, &sfv, sizeof(sfv),
+ NULL, 0);
}
const struct brw_tracked_state brw_sf_vp = {