mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
Small COW break on destruction optimization.
Fix a comment.
This commit is contained in:
parent
d17637d47f
commit
6f9dc91045
2 changed files with 4 additions and 6 deletions
|
|
@ -260,8 +260,7 @@ intelFlush(GLcontext * ctx)
|
|||
if (intel->batch->map != intel->batch->ptr)
|
||||
intel_batchbuffer_flush(intel->batch);
|
||||
|
||||
/* XXX: Need to do an MI_FLUSH here. Actually, the bufmgr_fake.c
|
||||
* code will have done one already.
|
||||
/* XXX: Need to do an MI_FLUSH here.
|
||||
*/
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -127,10 +127,9 @@ intel_region_release(intelScreenPrivate *intelScreen,
|
|||
assert((*region)->map_refcount == 0);
|
||||
|
||||
if ((*region)->pbo)
|
||||
intel_region_release_pbo(intelScreen, *region);
|
||||
|
||||
driDeleteBuffers(1, &(*region)->buffer);
|
||||
|
||||
(*region)->pbo->region = NULL;
|
||||
(*region)->pbo = NULL;
|
||||
driBOUnReference((*region)->buffer);
|
||||
free(*region);
|
||||
}
|
||||
*region = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue