summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_state_upload.c
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2015-03-20 00:46:03 -0700
committerJordan Justen <jordan.l.justen@intel.com>2015-03-31 16:40:24 -0700
commit22ccdf12dd7b5db6eb0c8f2b03c3516f8376fdad (patch)
tree4b9fb213eeb2999741be5be17f87c238686309f5 /src/mesa/drivers/dri/i965/brw_state_upload.c
parent7ecf3530d87e88971fd77d35ac23c5383630d35b (diff)
i965/state: Remove brw->state.dirty
We now use brw->NewGLState and brw->ctx.NewDriverState instead. Suggested-by: Kenneth Graunke <kenneth@whitecape.org> 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/brw_state_upload.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_state_upload.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c b/src/mesa/drivers/dri/i965/brw_state_upload.c
index f6369066100..ab316bfc431 100644
--- a/src/mesa/drivers/dri/i965/brw_state_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_state_upload.c
@@ -624,9 +624,7 @@ merge_ctx_state(struct brw_context *brw,
struct brw_state_flags *state)
{
state->mesa |= brw->NewGLState;
- assert(brw->state.dirty.mesa == 0);
state->brw |= brw->ctx.NewDriverState;
- assert(brw->state.dirty.brw == 0ull);
}
static inline void
@@ -645,7 +643,6 @@ brw_upload_pipeline_state(struct brw_context *brw,
enum brw_pipeline pipeline)
{
struct gl_context *ctx = &brw->ctx;
- struct brw_state_flags *brw_state = &brw->state.dirty;
int i;
static int dirty_count = 0;
struct brw_state_flags state = brw->state.pipelines[pipeline];
@@ -758,8 +755,6 @@ static inline void
brw_pipeline_state_finished(struct brw_context *brw,
enum brw_pipeline pipeline)
{
- struct brw_state_flags *state = &brw->state.dirty;
-
/* Save all dirty state into the other pipelines */
for (int i = 0; i < BRW_NUM_PIPELINES; i++) {
if (i != pipeline) {
@@ -772,7 +767,6 @@ brw_pipeline_state_finished(struct brw_context *brw,
brw->NewGLState = 0;
brw->ctx.NewDriverState = 0ull;
- memset(state, 0, sizeof(*state));
}
/**