All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH xf86-video-amdgpu] Enable HW cursor support with PRIME slave output & Xorg > 1.18.99.901
@ 2016-10-13  9:47 Michel Dänzer
       [not found] ` <20161013094711.16975-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Michel Dänzer @ 2016-10-13  9:47 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

From: Michel Dänzer <michel.daenzer@amd.com>

Supported since Xorg 1.18.99.2, but buggy until 1.18.99.901.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
---
 src/drmmode_display.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index fb41975..f291f6d 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -611,8 +611,9 @@ drmmode_can_use_hw_cursor(xf86CrtcPtr crtc)
 		return FALSE;
 #endif
 
-#ifdef AMDGPU_PIXMAP_SHARING
-	/* HW cursor not supported yet with RandR 1.4 multihead */
+#if defined(AMDGPU_PIXMAP_SHARING) && \
+	XORG_VERSION_CURRENT <= XORG_VERSION_NUMERIC(1,18,99,901,0)
+	/* HW cursor not supported with RandR 1.4 multihead */
 	if (!xorg_list_is_empty(&crtc->scrn->pScreen->pixmap_dirty_list))
 		return FALSE;
 #endif
-- 
2.9.3

_______________________________________________
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-amdgpu] Enable HW cursor support with PRIME slave output & Xorg > 1.18.99.901
       [not found] ` <20161013094711.16975-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
@ 2016-10-13 13:15   ` Deucher, Alexander
  0 siblings, 0 replies; 2+ messages in thread
From: Deucher, Alexander @ 2016-10-13 13:15 UTC (permalink / raw)
  To: 'Michel Dänzer', amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf
> Of Michel Dänzer
> Sent: Thursday, October 13, 2016 5:47 AM
> To: amd-gfx@lists.freedesktop.org
> Subject: [PATCH xf86-video-amdgpu] Enable HW cursor support with PRIME
> slave output & Xorg > 1.18.99.901
> 
> From: Michel Dänzer <michel.daenzer@amd.com>
> 
> Supported since Xorg 1.18.99.2, but buggy until 1.18.99.901.
> 
> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

> ---
>  src/drmmode_display.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/src/drmmode_display.c b/src/drmmode_display.c
> index fb41975..f291f6d 100644
> --- a/src/drmmode_display.c
> +++ b/src/drmmode_display.c
> @@ -611,8 +611,9 @@ drmmode_can_use_hw_cursor(xf86CrtcPtr crtc)
>  		return FALSE;
>  #endif
> 
> -#ifdef AMDGPU_PIXMAP_SHARING
> -	/* HW cursor not supported yet with RandR 1.4 multihead */
> +#if defined(AMDGPU_PIXMAP_SHARING) && \
> +	XORG_VERSION_CURRENT <=
> XORG_VERSION_NUMERIC(1,18,99,901,0)
> +	/* HW cursor not supported with RandR 1.4 multihead */
>  	if (!xorg_list_is_empty(&crtc->scrn->pScreen->pixmap_dirty_list))
>  		return FALSE;
>  #endif
> --
> 2.9.3
> 
> _______________________________________________
> 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:[~2016-10-13 13:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-13  9:47 [PATCH xf86-video-amdgpu] Enable HW cursor support with PRIME slave output & Xorg > 1.18.99.901 Michel Dänzer
     [not found] ` <20161013094711.16975-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
2016-10-13 13:15   ` Deucher, Alexander

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.