summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/gen7_urb.c
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2015-03-19 18:57:34 -0700
committerJordan Justen <jordan.l.justen@intel.com>2015-03-31 16:40:24 -0700
commit4e56a9ad46ff7fe85308ce12e21719ff2b476516 (patch)
tree461e06bf2e5d25a52ae16495471d47903c9857af /src/mesa/drivers/dri/i965/gen7_urb.c
parent20ef23b22721961c93b73700f619179d33747554 (diff)
downloadexternal_mesa3d-4e56a9ad46ff7fe85308ce12e21719ff2b476516.zip
external_mesa3d-4e56a9ad46ff7fe85308ce12e21719ff2b476516.tar.gz
external_mesa3d-4e56a9ad46ff7fe85308ce12e21719ff2b476516.tar.bz2
i965/state: Don't use brw->state.dirty.brw
Now, we only use ctx->NewDriverState. I used this bash & sed command in the i965 directory: for file in *.[ch] *.[ch]pp; do sed -i -e 's/state\.dirty\.brw/ctx.NewDriverState/g' $file done Followed by manual changes to brw_state_upload.c. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen7_urb.c')
-rw-r--r--src/mesa/drivers/dri/i965/gen7_urb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_urb.c b/src/mesa/drivers/dri/i965/gen7_urb.c
index 201f42e..d371c19 100644
--- a/src/mesa/drivers/dri/i965/gen7_urb.c
+++ b/src/mesa/drivers/dri/i965/gen7_urb.c
@@ -94,7 +94,7 @@ gen7_allocate_push_constants(struct brw_context *brw)
* Similar text exists for the other 3DSTATE_PUSH_CONSTANT_ALLOC_*
* commands.
*/
- brw->state.dirty.brw |= BRW_NEW_PUSH_CONSTANT_ALLOCATION;
+ brw->ctx.NewDriverState |= BRW_NEW_PUSH_CONSTANT_ALLOCATION;
}
void
@@ -152,7 +152,7 @@ gen7_upload_urb(struct brw_context *brw)
/* If we're just switching between programs with the same URB requirements,
* skip the rest of the logic.
*/
- if (!(brw->state.dirty.brw & BRW_NEW_CONTEXT) &&
+ if (!(brw->ctx.NewDriverState & BRW_NEW_CONTEXT) &&
brw->urb.vsize == vs_size &&
brw->urb.gs_present == gs_present &&
brw->urb.gsize == gs_size) {