mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
i965: Move state setup from brwCreateContext to brw_init_state().
This seems like a better place for it, and helps clean up brwCreateContext (which is full of a lot of random stuff). Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
d31b928b93
commit
220c1e5610
2 changed files with 8 additions and 8 deletions
|
|
@ -467,14 +467,6 @@ brwCreateContext(gl_api api,
|
|||
brw->curbe.next_buf = calloc(1, 4096);
|
||||
}
|
||||
|
||||
brw->state.dirty.mesa = ~0;
|
||||
brw->state.dirty.brw = ~0;
|
||||
|
||||
/* Make sure that brw->state.dirty.brw has enough bits to hold all possible
|
||||
* dirty flags.
|
||||
*/
|
||||
STATIC_ASSERT(BRW_NUM_STATE_BITS <= 8 * sizeof(brw->state.dirty.brw));
|
||||
|
||||
brw->batch.need_workaround_flush = true;
|
||||
|
||||
ctx->VertexProgram._MaintainTnlProgram = true;
|
||||
|
|
|
|||
|
|
@ -291,6 +291,14 @@ void brw_init_state( struct brw_context *brw )
|
|||
}
|
||||
|
||||
brw_upload_initial_gpu_state(brw);
|
||||
|
||||
brw->state.dirty.mesa = ~0;
|
||||
brw->state.dirty.brw = ~0;
|
||||
|
||||
/* Make sure that brw->state.dirty.brw has enough bits to hold all possible
|
||||
* dirty flags.
|
||||
*/
|
||||
STATIC_ASSERT(BRW_NUM_STATE_BITS <= 8 * sizeof(brw->state.dirty.brw));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue