Hardcode "non-desktop" RandR property name
PATCH 1/1 Hardcode "non-desktop" RandR property name
From: Michel Dänzer <[email protected]>
It's a bit silly to require current randrproto just for this definition, which can't really change anyway.
(Ported from amdgpu commit ae8e02c6fc4ef5d5340b8cd4739e66b19b9e3386)
--- configure.ac | 2 +- src/drmmode_display.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
configure.ac +1 -1
@@ -64,7 +64,7 @@ AC_ARG_WITH(xorg-module-dir, [moduledir="$libdir/xorg/modules"]) # Store the list of server defined optional extensions in REQUIRED_MODULES -XORG_DRIVER_CHECK_EXT(RANDR, [randrproto >= 1.6.0]) +XORG_DRIVER_CHECK_EXT(RANDR, randrproto) XORG_DRIVER_CHECK_EXT(RENDER, renderproto) XORG_DRIVER_CHECK_EXT(XV, videoproto) XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)
src/drmmode_display.c +1 -1
@@ -2012,7 +2012,7 @@ drmmode_output_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, drmModeResPtr mode_r#if XF86_CRTC_VERSION >=8 i =koutput_get_prop_idx (pRADEONEnt->fd, koutput,DRM_MODE_PROP_RANGE , -RR_PROPERTY_NON_DESKTOP ); +"non-desktop" );if (i >=0 ) nonDesktop = koutput->prop_values[i] !=0 ;#endif
Signature · 6 lines
2.18.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20180723090423.2336-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org
Alex Deucher
Reviewed-byQuoted 9 lines · Michel Dänzer
From: Michel Dänzer <[email protected]>
It's a bit silly to require current randrproto just for this definition, which can't really change anyway.
Suggested-by Qiang Yu <[email protected]>(Ported from amdgpu commit
ae8e02c6fc4ef5d5340b8cd4739e66b19b9e3386)Signed-off-by Michel Dänzer <[email protected]>
Quoted 34 lines
--- configure.ac | 2 +- src/drmmode_display.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)configure.ac +1
-1@@ -64,7 +64,7 @@ AC_ARG_WITH(xorg-module-dir, [moduledir="$libdir/xorg/modules"]) # Store the list of server defined optional extensions in REQUIRED_MODULES -XORG_DRIVER_CHECK_EXT(RANDR, [randrproto >= 1.6.0]) +XORG_DRIVER_CHECK_EXT(RANDR, randrproto) XORG_DRIVER_CHECK_EXT(RENDER, renderproto) XORG_DRIVER_CHECK_EXT(XV, videoproto) XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)src/drmmode_display.c +1
-2@@ -2012,7 +2012,7 @@ drmmode_output_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, drmModeResPtr mode_r#if XF86_CRTC_VERSION >=8 i =koutput_get_prop_idx (pRADEONEnt->fd, koutput,DRM_MODE_PROP_RANGE , -RR_PROPERTY_NON_DESKTOP ); +"non-desktop" );if (i >=0 ) nonDesktop = koutput->prop_values[i] !=0 ;#endif --2.18.0
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx