Skip to content
Commit 4953aa13 authored by Chris Wilson's avatar Chris Wilson
Browse files

sna: Always sync before using mmap pointers in memcpy_copy_boxes



kgem_bo_map__(cpu|gtt) leaves the sync up to the caller, in particular
so that the obtaining the pointer and controlling the cache domains are
not conflated and can be separated. However, it does mean that the
caller can not assume that obtaining the pointer updates the cache
domains, as it does not. memcpy_copy_boxes fell into this trap.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent 12db28ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment