i965: Create a macro for setting all dirty bits.
[mesa.git] / src / mesa / drivers / dri / i965 / brw_state_cache.c
index df2d806e7f6fc04ef71e59c5cb14c6971c675027..fcb7277bf275c10ba47f0c9960010ffb8ed04d51 100644 (file)
@@ -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);
 }