diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-05 10:30:47 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-05 10:38:45 +0000 |
commit | 797b27365dc09a3f84349a33cffbfdc67cba0baa (patch) | |
tree | 6915277f89fd8496bc8a7733cb574b947d7f8208 /src/sna | |
parent | 23e3959e1f603c3ba0bd4f01128290241cf93edf (diff) |
sna: Don't perform a deferred attachment for vmapping if not supported
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna')
-rw-r--r-- | src/sna/sna.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h index b4d109cf..110eae9d 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -572,6 +572,9 @@ static inline struct kgem_bo *pixmap_vmap(struct kgem *kgem, PixmapPtr pixmap) { struct sna_pixmap *priv; + if (!kgem->has_vmap) + return NULL; + if (unlikely(kgem->wedged)) return NULL; |