sna: Don't perform a deferred attachment for vmapping if not supported

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-01-05 10:30:47 +00:00
parent 23e3959e1f
commit 797b27365d
1 changed files with 3 additions and 0 deletions

View File

@ -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;