sna: Only operate inplace if no existing CPU damage for a read
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Nov 2013 22:41:06 +0000 (22:41 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 6 Nov 2013 09:01:17 +0000 (09:01 +0000)
commitf2f9019bae5f6f03b5e23da759d3871fc18dd9f4
treef9a06a53376abccef3fa67ce9bd1ed06319eed86
parent7f901495cdef0ae3b4a328bb98a6bc0ff03ea362
sna: Only operate inplace if no existing CPU damage for a read

With a large object, we try harder to operate inplace (to avoid creating
a second large CPU bo). This introduced an issue where we tried to read
from the GPU bo when there was already existing damage in the CPU -
triggering an assertion.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_accel.c