diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2018-07-17 11:43:12 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2018-07-17 11:43:12 +0200 |
commit | 499d2f9d5d301ef1efd4ffc2952677609ef05122 (patch) | |
tree | 3252d45f98a9095afa25d53ef1ed9833cdc85078 /src/radeon.h | |
parent | d9a139bc6d453d33593685de67d1425611f3ab6f (diff) |
glamor: Invalidate cached GEM handle in radeon_set_pixmap_bo
We continued using the stale cached handle, causing issues e.g. when
resizing the screen via RandR.
Reported-by: iive on IRC
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon.h')
-rw-r--r-- | src/radeon.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/radeon.h b/src/radeon.h index 450c69aa..1a1edb1b 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -735,6 +735,7 @@ static inline Bool radeon_set_pixmap_bo(PixmapPtr pPix, struct radeon_buffer *bo return TRUE; radeon_buffer_unref(&priv->bo); + priv->handle_valid = FALSE; } drmmode_fb_reference(pRADEONEnt->fd, &priv->fb, NULL); |