summaryrefslogtreecommitdiff
path: root/src/radeon_glamor.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2013-01-11 13:22:24 +0100
committerMichel Dänzer <michel@daenzer.net>2013-01-11 13:22:24 +0100
commit1a8c05fd5559be842d8a038df73de34d4b261c15 (patch)
tree9e31d9d37675fa53e7cd12b20c8fa50484251733 /src/radeon_glamor.c
parente5e22d788b103c04d3460a221a3b9dc3be69e0a4 (diff)
Make CRTC shadow pixmaps usable by glamor.
Fixes rotation with glamor. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'src/radeon_glamor.c')
-rw-r--r--src/radeon_glamor.c2
1 files changed, 2 insertions, 0 deletions
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;