mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
i965: Initialize batchbuffer and state modules before extensions.
We only want to enable ARB_transform_feedback2 if we can write to registers from batchbuffers. In order to test that, we need to be able to submit batches. And for batches to work, we need to program the initial pipeline state (like PIPELINE_SELECT), which is done from brw_state_init(). Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
82a5ee6be4
commit
46d3c2bf4d
1 changed files with 4 additions and 4 deletions
|
|
@ -609,10 +609,12 @@ brwCreateContext(gl_api api,
|
|||
/* Reinitialize the context point state. It depends on ctx->Const values. */
|
||||
_mesa_init_point(ctx);
|
||||
|
||||
intelInitExtensions(ctx);
|
||||
|
||||
intel_batchbuffer_init(brw);
|
||||
|
||||
brw_init_state(brw);
|
||||
|
||||
intelInitExtensions(ctx);
|
||||
|
||||
intel_fbo_init(brw);
|
||||
|
||||
if (brw->gen >= 6) {
|
||||
|
|
@ -671,8 +673,6 @@ brwCreateContext(gl_api api,
|
|||
brw->prim_restart.in_progress = false;
|
||||
brw->prim_restart.enable_cut_index = false;
|
||||
|
||||
brw_init_state( brw );
|
||||
|
||||
if (brw->gen < 6) {
|
||||
brw->curbe.last_buf = calloc(1, 4096);
|
||||
brw->curbe.next_buf = calloc(1, 4096);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue