diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2015-04-03 12:11:00 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2015-04-03 12:11:00 +0900 |
commit | ed401f5b4f07375db17ff05e294907ec95fc946d (patch) | |
tree | f794930d90f15741ab81295a00ae8104f6a50eaa /src/radeon_dri2.c | |
parent | ae92d1765fa370a8d94c2856ad6c45d273ec3c69 (diff) |
glamor: Remove the stride member of struct radeon_pixmap
Its value was always the same as that of the PixmapRec devKind member.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon_dri2.c')
-rw-r--r-- | src/radeon_dri2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c index edf643dd..31a1ce7e 100644 --- a/src/radeon_dri2.c +++ b/src/radeon_dri2.c @@ -111,16 +111,17 @@ static PixmapPtr fixup_glamor(DrawablePtr drawable, PixmapPtr pixmap) /* And redirect the pixmap to the new bo (for 3D). */ glamor_egl_exchange_buffers(old, pixmap); radeon_set_pixmap_private(old, priv); - screen->DestroyPixmap(pixmap); old->refcnt++; screen->ModifyPixmapHeader(old, old->drawable.width, old->drawable.height, 0, 0, - priv->stride, + pixmap->devKind, NULL); + screen->DestroyPixmap(pixmap); + #endif /* USE_GLAMOR*/ return old; |