mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 11:30:22 +01:00
intel: Flush the batch when we're about to subdata into a VBO.
This fixes the clears in openarena with the new metaops clear code, and the new piglit vbo-subdata-sync test. Bug #23857.
This commit is contained in:
parent
54107a0979
commit
cc8084932c
2 changed files with 5 additions and 2 deletions
|
|
@ -207,8 +207,12 @@ intel_bufferobj_subdata(GLcontext * ctx,
|
|||
|
||||
if (intel_obj->sys_buffer)
|
||||
memcpy((char *)intel_obj->sys_buffer + offset, data, size);
|
||||
else
|
||||
else {
|
||||
/* Flush any existing batchbuffer that might reference this data. */
|
||||
intelFlush(ctx);
|
||||
|
||||
dri_bo_subdata(intel_obj->buffer, offset, size, data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -173,7 +173,6 @@ intelClear(GLcontext *ctx, GLbitfield mask)
|
|||
}
|
||||
|
||||
_mesa_meta_clear(&intel->ctx, tri_mask);
|
||||
intel_batchbuffer_flush(intel->batch);
|
||||
}
|
||||
|
||||
if (swrast_mask) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue