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>
return false;
}
+ if (priv->cpu_damage && flags & MOVE_READ) {
+ DBG(("%s: no, has CPU damage and requires readback\n", __FUNCTION__));
+ return false;
+ }
+
if (priv->cpu_bo && kgem_bo_is_busy(priv->cpu_bo)) {
DBG(("%s: yes, CPU is busy\n", __FUNCTION__));
return true;