sna: Restore LLC cache level after using a buffer for scanout (uncached)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-09-28 09:25:12 +01:00
parent 8bfd31e9bb
commit 13f7a9e267
1 changed files with 4 additions and 0 deletions

View File

@ -1354,6 +1354,10 @@ static void kgem_bo_clear_scanout(struct kgem *kgem, struct kgem_bo *bo)
bo->needs_flush = true;
bo->flush = false;
bo->reusable = true;
if (kgem->has_llc &&
gem_set_cacheing(kgem->fd, bo->handle, SNOOPED))
bo->reusable = false;
}
static void _kgem_bo_delete_buffer(struct kgem *kgem, struct kgem_bo *bo)