diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-06-18 09:01:49 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-06-18 10:54:16 +0100 |
commit | abb522e07a2c3bf39e2587ddedc4bb8ac955c536 (patch) | |
tree | 74a35f313a2eb3475053ccd36edb8e3ddd9e24b5 /src | |
parent | 6086abca13efdeaf9b24c9fbe425546cbe2cfb12 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/kgem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 41ed27de..65d12053 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -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; } |