summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-10-22 12:02:37 -0700
committerEric Anholt <[email protected]>2011-10-29 12:17:17 -0700
commit68c813e8eaf46594b1a3c4b0f49ff6edd9d60c75 (patch)
tree2d519f7cbee30c2114737914ae1e349496d74fc3
parent26cfca825d7cdba753d138172285b5c2adf25c4b (diff)
i965: Remove state upload code for calling prepare() now that there are none.
Reviewed-by: Kenneth Graunke <[email protected]> Acked-by: Paul Berry <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_state_upload.c23
1 files changed, 3 insertions, 20 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c b/src/mesa/drivers/dri/i965/brw_state_upload.c
index 3479dfc79ae..620c629805e 100644
--- a/src/mesa/drivers/dri/i965/brw_state_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_state_upload.c
@@ -259,14 +259,12 @@ void brw_init_state( struct brw_context *brw )
(*atoms)->dirty.brw |
(*atoms)->dirty.cache);
- if ((*atoms)->prepare)
- brw->prepare_atoms[brw->num_prepare_atoms++] = **atoms;
- if ((*atoms)->emit)
- brw->emit_atoms[brw->num_emit_atoms++] = **atoms;
+ assert(!(*atoms)->prepare);
+ assert((*atoms)->emit);
+ brw->emit_atoms[brw->num_emit_atoms++] = **atoms;
atoms++;
}
assert(brw->num_emit_atoms <= ARRAY_SIZE(brw->emit_atoms));
- assert(brw->num_prepare_atoms <= ARRAY_SIZE(brw->prepare_atoms));
}
@@ -428,9 +426,6 @@ void brw_validate_state( struct brw_context *brw )
struct gl_context *ctx = &brw->intel.ctx;
struct intel_context *intel = &brw->intel;
struct brw_state_flags *state = &brw->state.dirty;
- const struct brw_tracked_state *atoms = brw->prepare_atoms;
- int num_atoms = brw->num_prepare_atoms;
- GLuint i;
state->mesa |= brw->intel.NewGLState;
brw->intel.NewGLState = 0;
@@ -456,18 +451,6 @@ void brw_validate_state( struct brw_context *brw )
brw->intel.Fallback = false; /* boolean, not bitfield */
- /* do prepare stage for all atoms */
- for (i = 0; i < num_atoms; i++) {
- const struct brw_tracked_state *atom = &atoms[i];
-
- if (check_state(state, &atom->dirty)) {
- atom->prepare(brw);
-
- if (brw->intel.Fallback)
- break;
- }
- }
-
intel_check_front_buffer_rendering(intel);
}