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:
parent
6086abca13
commit
abb522e07a
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue