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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user