diff options
author | Kenneth Graunke <[email protected]> | 2014-11-24 23:57:48 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-12-02 17:00:26 -0800 |
commit | 4f24c168c87e9938f35f5ec135062408148be373 (patch) | |
tree | 40d36afa98ee6fb039a7e39697c0426b000ade1d /src/mesa/drivers/dri/i965/brw_ff_gs.c | |
parent | ce44b2061cf59264b4f22271e8d70cdc826af6de (diff) |
i965: Move BRW_NEW_*_PROG_DATA flags to .brw (not .cache).
I put the BRW_NEW_*_PROG_DATA flags at the beginning so that
brw_state_cache.c can still continue using 1 << brw_cache_id.
I also added a comment explaining the difference between
BRW_NEW_*_PROG_DATA and BRW_NEW_*_PROGRAM, as it took me a long time
to remember it.
Non-mechanical changes:
- brw_state_cache.c and brw_ff_gs.c now signal .brw, not .cache.
- brw_state_upload.c - INTEL_DEBUG=state changes.
- brw_context.h - bit definition merging.
v2: Correct the explanation of BRW_NEW_*_PROG_DATA to mention
state-based recompiles, and nix the "proper subset" claim,
as it's false. (Caught by Kristian Høgsberg).
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/brw_ff_gs.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_ff_gs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_ff_gs.c b/src/mesa/drivers/dri/i965/brw_ff_gs.c index f2e9663c002..653c4b6deb3 100644 --- a/src/mesa/drivers/dri/i965/brw_ff_gs.c +++ b/src/mesa/drivers/dri/i965/brw_ff_gs.c @@ -230,7 +230,7 @@ brw_upload_ff_gs_prog(struct brw_context *brw) populate_key(brw, &key); if (brw->ff_gs.prog_active != key.need_gs_prog) { - brw->state.dirty.cache |= BRW_NEW_FF_GS_PROG_DATA; + brw->state.dirty.brw |= BRW_NEW_FF_GS_PROG_DATA; brw->ff_gs.prog_active = key.need_gs_prog; } @@ -252,8 +252,8 @@ const struct brw_tracked_state brw_ff_gs_prog = { .dirty = { .mesa = _NEW_LIGHT, .brw = BRW_NEW_PRIMITIVE | - BRW_NEW_TRANSFORM_FEEDBACK, - .cache = BRW_NEW_VS_PROG_DATA + BRW_NEW_TRANSFORM_FEEDBACK | + BRW_NEW_VS_PROG_DATA, }, .emit = brw_upload_ff_gs_prog }; |