On 24.06.2016 23:13, Deucher, Alexander wrote: >> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf >> Of Michel Dänzer >> [...] >> We can use the dimensions of the CRTC's mode instead. > > Will this break panning mode? No, panning still works fine with this change. These dimensions are just used for clamping the extents of damage after it was transformed into the CRTC coordinate space. When panning, drmmode_set_mode_major damages the whole virtual screen, which in this code results in the transformed and clamped extents still covering the whole CRTC, so the scanout pixmap gets updated with the contents of the CRTC viewport at the new position. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer