diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2015-06-09 11:57:59 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2015-06-15 17:24:09 +0900 |
commit | bd0aca09770543fa77b934e1728a832c9c2dc90c (patch) | |
tree | a74a2920b0d2fa6730db91dfa5b7c1d4487df626 /src/amdgpu_dri2.c | |
parent | e5dfb6c2667994701ee451bf82c4142cbf343405 (diff) |
glamor: Remove the stride member of struct radeon_pixmap
Its value was always the same as that of the PixmapRec devKind member.
(Cherry picked from radeon commit ed401f5b4f07375db17ff05e294907ec95fc946d)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/amdgpu_dri2.c')
-rw-r--r-- | src/amdgpu_dri2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/amdgpu_dri2.c b/src/amdgpu_dri2.c index bdb0d37..bde36de 100644 --- a/src/amdgpu_dri2.c +++ b/src/amdgpu_dri2.c @@ -109,15 +109,16 @@ static PixmapPtr fixup_glamor(DrawablePtr drawable, PixmapPtr pixmap) /* And redirect the pixmap to the new bo (for 3D). */ glamor_egl_exchange_buffers(old, pixmap); amdgpu_set_pixmap_private(old, priv); - screen->DestroyPixmap(pixmap); old->refcnt++; screen->ModifyPixmapHeader(old, old->drawable.width, old->drawable.height, - 0, 0, priv->stride, NULL); + 0, 0, pixmap->devKind, NULL); old->devPrivate.ptr = NULL; + screen->DestroyPixmap(pixmap); + return old; } |