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:
parent
b4b32e7a01
commit
7e09babb3e
|
|
@ -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 *
|
||||
|
|
|
|||
Loading…
Reference in New Issue