diff options
-rw-r--r-- | src/drmmode_display.c | 5 | ||||
-rw-r--r-- | src/radeon_glamor.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index e4757ad3..0d738563 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -140,6 +140,11 @@ static PixmapPtr drmmode_create_bo_pixmap(ScrnInfoPtr pScrn, } } + if (!radeon_glamor_create_textured_pixmap(pixmap)) { + pScreen->DestroyPixmap(pixmap); + return NULL; + } + return pixmap; } diff --git a/src/radeon_glamor.c b/src/radeon_glamor.c index c232cc22..5a7561f2 100644 --- a/src/radeon_glamor.c +++ b/src/radeon_glamor.c @@ -131,6 +131,8 @@ radeon_glamor_create_textured_pixmap(PixmapPtr pixmap) return TRUE; priv = radeon_get_pixmap_private(pixmap); + if (!priv->stride) + priv->stride = pixmap->devKind; if (glamor_egl_create_textured_pixmap(pixmap, priv->bo->handle, priv->stride)) return TRUE; |