sna: Do not sync after a failed mapping

The domain update should be a redundant operation, causing needless
extra transitions.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-06-18 09:01:49 +01:00
parent 6086abca13
commit abb522e07a
1 changed files with 2 additions and 1 deletions

View File

@ -4607,7 +4607,8 @@ void *kgem_bo_map(struct kgem *kgem, struct kgem_bo *bo)
DBG(("%s: converting request for GTT map into CPU map\n",
__FUNCTION__));
ptr = kgem_bo_map__cpu(kgem, bo);
kgem_bo_sync__cpu(kgem, bo);
if (ptr)
kgem_bo_sync__cpu(kgem, bo);
return ptr;
}