sna: Clear snoop flag after converting from a CPU bo

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-11-05 18:29:46 +00:00
parent dc61705a6e
commit 10b573c508
1 changed files with 7 additions and 1 deletions

View File

@ -6549,5 +6549,11 @@ bool kgem_bo_convert_to_gpu(struct kgem *kgem, struct kgem_bo *bo)
if (kgem->has_llc)
return true;
return gem_set_caching(kgem->fd, bo->handle, UNCACHED);
assert(bo->snoop);
if (!gem_set_caching(kgem->fd, bo->handle, UNCACHED))
return false;
bo->snoop = false;
return true;
}