* [PATCH xf86-video-ati] Hardcode "non-desktop" RandR property name
@ 2018-07-23 9:04 Michel Dänzer
[not found] ` <20180723090423.2336-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Michel Dänzer @ 2018-07-23 9:04 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
From: Michel Dänzer <michel.daenzer@amd.com>
It's a bit silly to require current randrproto just for this definition,
which can't really change anyway.
Suggested-by: Qiang Yu <qiang.yu@amd.com>
(Ported from amdgpu commit ae8e02c6fc4ef5d5340b8cd4739e66b19b9e3386)
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
---
configure.ac | 2 +-
src/drmmode_display.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 15c7b2128..bea205c34 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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)
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 000c7fc62..ff098975f 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -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
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH xf86-video-ati] Hardcode "non-desktop" RandR property name
[not found] ` <20180723090423.2336-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
@ 2018-07-23 15:40 ` Alex Deucher
0 siblings, 0 replies; 2+ messages in thread
From: Alex Deucher @ 2018-07-23 15:40 UTC (permalink / raw)
To: Michel Dänzer; +Cc: amd-gfx list
On Mon, Jul 23, 2018 at 5:04 AM, Michel Dänzer <michel@daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer@amd.com>
>
> It's a bit silly to require current randrproto just for this definition,
> which can't really change anyway.
>
> Suggested-by: Qiang Yu <qiang.yu@amd.com>
> (Ported from amdgpu commit ae8e02c6fc4ef5d5340b8cd4739e66b19b9e3386)
>
> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
> ---
> configure.ac | 2 +-
> src/drmmode_display.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 15c7b2128..bea205c34 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -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)
> diff --git a/src/drmmode_display.c b/src/drmmode_display.c
> index 000c7fc62..ff098975f 100644
> --- a/src/drmmode_display.c
> +++ b/src/drmmode_display.c
> @@ -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
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-23 15:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-23 9:04 [PATCH xf86-video-ati] Hardcode "non-desktop" RandR property name Michel Dänzer
[not found] ` <20180723090423.2336-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-07-23 15:40 ` Alex Deucher
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.