aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/gen6_viewport_state.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2014-09-26 10:26:09 -0700
committerKenneth Graunke <[email protected]>2014-11-29 02:18:42 -0800
commit66ebfad3cd123b6e23e28bdf17cda203b7c99a30 (patch)
tree748ba3f707bf33e5e8b52ebbacc7212e29e38e73 /src/mesa/drivers/dri/i965/gen6_viewport_state.c
parent4d67b6ab9aa11428eb998377805c0f94cac099ea (diff)
i965: Move CACHE_NEW_*_VP flags to BRW_NEW_*_VP.
We've been streaming these out for ages, so they basically have nothing to do with brw_state_cache.c. Saves 6 * sizeof(void *) bytes per context, as we won't have useless aux_compare/aux_free functions for them. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Kristian Høgsberg <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen6_viewport_state.c')
-rw-r--r--src/mesa/drivers/dri/i965/gen6_viewport_state.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_viewport_state.c b/src/mesa/drivers/dri/i965/gen6_viewport_state.c
index 0d5284d704f..4c8fe4c322f 100644
--- a/src/mesa/drivers/dri/i965/gen6_viewport_state.c
+++ b/src/mesa/drivers/dri/i965/gen6_viewport_state.c
@@ -63,7 +63,7 @@ gen6_upload_clip_vp(struct brw_context *brw)
vp->ymin = -gby;
vp->ymax = gby;
- brw->state.dirty.cache |= CACHE_NEW_CLIP_VP;
+ brw->state.dirty.brw |= BRW_NEW_CLIP_VP;
}
const struct brw_tracked_state gen6_clip_vp = {
@@ -106,7 +106,7 @@ gen6_upload_sf_vp(struct brw_context *brw)
sfv->viewport.m31 = v[MAT_TY] * y_scale + y_bias;
sfv->viewport.m32 = v[MAT_TZ] * depth_scale;
- brw->state.dirty.cache |= CACHE_NEW_SF_VP;
+ brw->state.dirty.brw |= BRW_NEW_SF_VP;
}
const struct brw_tracked_state gen6_sf_vp = {
@@ -136,10 +136,11 @@ const struct brw_tracked_state gen6_viewport_state = {
.dirty = {
.mesa = 0,
.brw = BRW_NEW_BATCH |
+ BRW_NEW_CC_VP |
+ BRW_NEW_CLIP_VP |
+ BRW_NEW_SF_VP |
BRW_NEW_STATE_BASE_ADDRESS,
- .cache = CACHE_NEW_CC_VP |
- CACHE_NEW_CLIP_VP |
- CACHE_NEW_SF_VP,
+ .cache = 0,
},
.emit = upload_viewport_state_pointers,
};