sna: Only attempt to reuse exported scanout buffers

Yet more mesa w/a.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-05-01 12:37:45 +01:00
parent b4b32e7a01
commit 7e09babb3e
1 changed files with 1 additions and 1 deletions

View File

@ -4148,13 +4148,13 @@ void kgem_bo_set_binding(struct kgem_bo *bo, uint32_t format, uint16_t offset)
void kgem_bo_clear_scanout(struct kgem *kgem, struct kgem_bo *bo)
{
bo->needs_flush = true;
bo->reusable = true;
bo->flush = false;
if (!bo->scanout)
return;
bo->scanout = false;
bo->reusable = true;
}
struct kgem_bo *