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:
parent
dc61705a6e
commit
10b573c508
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue