RE: [PATCH xf86-video-ati] Simplify tracking of PRIME scanout pixmap

2017-05-10 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Michel Dänzer > Sent: Wednesday, May 10, 2017 5:11 AM > To: amd-gfx@lists.freedesktop.org > Subject: [PATCH xf86-video-ati] Simplify tracking of PRIME scanout pixmap >

[PATCH xf86-video-ati] Simplify tracking of PRIME scanout pixmap

2017-05-10 Thread Michel Dänzer
From: Michel Dänzer Remember the shared pixmap passed to drmmode_set_scanout_pixmap for each CRTC, and just compare against that. Fixes leaving stale entries in ScreenRec::pixmap_dirty_list under some circumstances, which would usually result in use-after-free and a crash down the line. Signed-