i965: Move need_workaround_flush = true to intel_batchbuffer_init.

intel_batchbuffer_init() sets up initial batchbuffer state; it seems
like a reasonable place to initialize this flag.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Kenneth Graunke
2013-09-27 15:29:00 -07:00
parent ddc8decdb2
commit 50c9f04c5f
2 changed files with 2 additions and 2 deletions
-2
View File
@@ -647,8 +647,6 @@ brwCreateContext(gl_api api,
brw->curbe.next_buf = calloc(1, 4096);
}
brw->batch.need_workaround_flush = true;
ctx->VertexProgram._MaintainTnlProgram = true;
ctx->FragmentProgram._MaintainTexEnvProgram = true;
@@ -70,6 +70,8 @@ intel_batchbuffer_init(struct brw_context *brw)
4096, 4096);
}
brw->batch.need_workaround_flush = true;
if (!brw->has_llc) {
brw->batch.cpu_map = malloc(BATCH_SZ);
brw->batch.map = brw->batch.cpu_map;