aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_state_cache.c
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2014-01-10 14:23:52 -0800
committerJordan Justen <[email protected]>2014-09-01 19:38:27 -0700
commit6f56e1424d923fd80c84090fbf4506c9eaaffea1 (patch)
tree5a0b063ce27977487f95edd09c94eb0cb6fbddc6 /src/mesa/drivers/dri/i965/brw_state_cache.c
parent88e3d404dad009d8cff5124cf8acee7daeaceb64 (diff)
i965: Create a macro for setting all dirty bits.
This will make it easier to extend dirty bit handling to support compute shaders. Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_state_cache.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_state_cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state_cache.c b/src/mesa/drivers/dri/i965/brw_state_cache.c
index df2d806e7f6..fcb7277bf27 100644
--- a/src/mesa/drivers/dri/i965/brw_state_cache.c
+++ b/src/mesa/drivers/dri/i965/brw_state_cache.c
@@ -379,9 +379,9 @@ brw_clear_cache(struct brw_context *brw, struct brw_cache *cache)
/* We need to make sure that the programs get regenerated, since
* any offsets leftover in brw_context will no longer be valid.
*/
- brw->state.dirty.mesa |= ~0;
- brw->state.dirty.brw |= ~0;
- brw->state.dirty.cache |= ~0;
+ SET_DIRTY_ALL(mesa);
+ SET_DIRTY_ALL(brw);
+ SET_DIRTY_ALL(cache);
intel_batchbuffer_flush(brw);
}