mirror of
https://github.com/X11Libre/xf86-video-ati.git
synced 2026-03-24 01:24:43 +00:00
Unreference pixmap's FB with EXA as well in radeon_set_pixmap_bo
Not doing so resulted in DRI2 page flips not actually changing the FB
being scanned out, showing intermittent flicker of the "back" buffer
rendering.
Bugzilla: https://bugs.freedesktop.org/102643
Fixes: 55e513b978 "Use reference counting for tracking KMS framebuffer
lifetimes"
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Michel Dänzer
parent
61113768bd
commit
b93ae9b159
@@ -769,6 +769,8 @@ static inline Bool radeon_set_pixmap_bo(PixmapPtr pPix, struct radeon_bo *bo)
|
||||
if (driver_priv->bo)
|
||||
radeon_bo_unref(driver_priv->bo);
|
||||
|
||||
drmmode_fb_reference(pRADEONEnt->fd, &driver_priv->fb, NULL);
|
||||
|
||||
radeon_bo_ref(bo);
|
||||
driver_priv->bo = bo;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user