diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2014-09-26 10:26:09 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2014-11-29 02:18:42 -0800 |
commit | 66ebfad3cd123b6e23e28bdf17cda203b7c99a30 (patch) | |
tree | 748ba3f707bf33e5e8b52ebbacc7212e29e38e73 /src/mesa/drivers/dri/i965/brw_cc.c | |
parent | 4d67b6ab9aa11428eb998377805c0f94cac099ea (diff) | |
download | external_mesa3d-66ebfad3cd123b6e23e28bdf17cda203b7c99a30.zip external_mesa3d-66ebfad3cd123b6e23e28bdf17cda203b7c99a30.tar.gz external_mesa3d-66ebfad3cd123b6e23e28bdf17cda203b7c99a30.tar.bz2 |
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 <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_cc.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_cc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_cc.c b/src/mesa/drivers/dri/i965/brw_cc.c index 86ab503..01974e1 100644 --- a/src/mesa/drivers/dri/i965/brw_cc.c +++ b/src/mesa/drivers/dri/i965/brw_cc.c @@ -68,7 +68,7 @@ brw_upload_cc_vp(struct brw_context *brw) OUT_BATCH(brw->cc.vp_offset); ADVANCE_BATCH(); } else { - brw->state.dirty.cache |= CACHE_NEW_CC_VP; + brw->state.dirty.brw |= BRW_NEW_CC_VP; } } @@ -227,7 +227,7 @@ static void upload_cc_unit(struct brw_context *brw) if (brw->stats_wm || unlikely(INTEL_DEBUG & DEBUG_STATS)) cc->cc5.statistics_enable = 1; - /* CACHE_NEW_CC_VP */ + /* BRW_NEW_CC_VP */ cc->cc4.cc_viewport_state_offset = (brw->batch.bo->offset64 + brw->cc.vp_offset) >> 5; /* reloc */ @@ -248,8 +248,9 @@ const struct brw_tracked_state brw_cc_unit = { _NEW_DEPTH | _NEW_STENCIL, .brw = BRW_NEW_BATCH | + BRW_NEW_CC_VP | BRW_NEW_STATS_WM, - .cache = CACHE_NEW_CC_VP + .cache = 0 }, .emit = upload_cc_unit, }; |