mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
Fix a fencing bug.
This commit is contained in:
parent
3345ab8ccf
commit
4f8549634e
1 changed files with 4 additions and 4 deletions
|
|
@ -216,10 +216,6 @@ do_flush_locked(struct intel_batchbuffer *batch,
|
|||
*/
|
||||
|
||||
driBOFence(batch->buffer, fo);
|
||||
for (i = 0; i < batch->nr_relocs; i++) {
|
||||
struct buffer_reloc *r = &batch->reloc[i];
|
||||
driBOFence(r->buf, batch->last_fence);
|
||||
}
|
||||
|
||||
if (driFenceType(fo) == DRM_FENCE_TYPE_EXE) {
|
||||
|
||||
|
|
@ -232,6 +228,10 @@ do_flush_locked(struct intel_batchbuffer *batch,
|
|||
} else {
|
||||
driFenceUnReference(batch->last_fence);
|
||||
batch->last_fence = fo;
|
||||
for (i = 0; i < batch->nr_relocs; i++) {
|
||||
struct buffer_reloc *r = &batch->reloc[i];
|
||||
driBOFence(r->buf, fo);
|
||||
}
|
||||
}
|
||||
|
||||
if (intel->numClipRects == 0 && !ignore_cliprects) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue