xrandr SetCrtcConfig and panning

Gabriel Corona gabriel.corona at enst-bretagne.fr
Fri Jul 15 11:02:51 UTC 2016


Hi,

I'm investigating an issue with Wine, xrandr and the proprietary
nvidia driver [1]. Wine uses XRRSetCrtcConfig() to change the
resolution without calling XRRScreenSize() beforehand [2]. At least
with the nvidia driver, the result is that the new resolution is set
to the CRTC but the original resolution is used as panning:

    1280x1024+0+0 (normal left inverted right x axis y axis) 430mm x 270mm panning 1680x1050+0+0"    

Is this supposed to be correct with respect to the xrandr
specification? Should this be seen as a bug in the driver? Should it
be seen as a bug in Wine? Both?

SDL2 for example does the same thing [3] (leading to the same bug).

[1] https://bugs.winehq.org/show_bug.cgi?id=33290#add_comment

[2] https://github.com/wine-mirror/wine/blob/8a348a4/dlls/winex11.drv/xrandr.c#L348

[3] http://hg.libsdl.org/SDL/file/6c8f3b478b45/src/video/x11/SDL_x11modes.c#l1004

Cheers,

-- 
Gabriel Corona


More information about the xorg-devel mailing list