diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-07 14:58:08 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-07 14:58:08 +0000 |
commit | d9ecb91ef123ee4e88020d0328a8c1fafad30e6c (patch) | |
tree | 03d73e53d4b5091685d27b620e7257eee1910364 /src/sna/kgem.c | |
parent | cb579a4444146a0736c7bad5edc1f382a32b6bf6 (diff) |
sna: Skip an unmappable linear bo when searching through a cache for a GTT mapping
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem.c')
-rw-r--r-- | src/sna/kgem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 5a540e42..9a61c14b 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -3544,6 +3544,9 @@ discard: continue; } } else { + if (flags & CREATE_GTT_MAP && !kgem_bo_can_map(kgem, bo)) + continue; + if (flags & (CREATE_CPU_MAP | CREATE_GTT_MAP)) { if (first != NULL) break; |