All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH xf86-video-ati] Don't handle Option "SwapbuffersWait" at all with glamor
@ 2017-01-31  7:27 Michel Dänzer
       [not found] ` <20170131072734.3290-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Michel Dänzer @ 2017-01-31  7:27 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

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

It never had any effect with glamor.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
---
 src/radeon_kms.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index 446852564..58efd6ee5 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -1801,10 +1801,12 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags)
 	}
     }
 
-    info->swapBuffersWait = xf86ReturnOptValBool(info->Options,
-						 OPTION_SWAPBUFFERS_WAIT, TRUE);
-    xf86DrvMsg(pScrn->scrnIndex, X_INFO,
-	       "SwapBuffers wait for vsync: %sabled\n", info->swapBuffersWait ? "en" : "dis");
+    if (!info->use_glamor) {
+	info->swapBuffersWait = xf86ReturnOptValBool(info->Options,
+						     OPTION_SWAPBUFFERS_WAIT, TRUE);
+	xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+		   "SwapBuffers wait for vsync: %sabled\n", info->swapBuffersWait ? "en" : "dis");
+    }
 
     if (xf86ReturnOptValBool(info->Options, OPTION_DELETE_DP12, FALSE)) {
         info->drmmode.delete_dp_12_displays = TRUE;
-- 
2.11.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] Don't handle Option "SwapbuffersWait" at all with glamor
       [not found] ` <20170131072734.3290-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
@ 2017-01-31 15:30   ` Deucher, Alexander
  0 siblings, 0 replies; 2+ messages in thread
From: Deucher, Alexander @ 2017-01-31 15:30 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: Tuesday, January 31, 2017 2:28 AM
> To: amd-gfx@lists.freedesktop.org
> Subject: [PATCH xf86-video-ati] Don't handle Option "SwapbuffersWait" at all
> with glamor
> 
> From: Michel Dänzer <michel.daenzer@amd.com>
> 
> It never had any effect with glamor.
> 
> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>

Good catch!

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

> ---
>  src/radeon_kms.c | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/src/radeon_kms.c b/src/radeon_kms.c
> index 446852564..58efd6ee5 100644
> --- a/src/radeon_kms.c
> +++ b/src/radeon_kms.c
> @@ -1801,10 +1801,12 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int
> flags)
>  	}
>      }
> 
> -    info->swapBuffersWait = xf86ReturnOptValBool(info->Options,
> -
> OPTION_SWAPBUFFERS_WAIT, TRUE);
> -    xf86DrvMsg(pScrn->scrnIndex, X_INFO,
> -	       "SwapBuffers wait for vsync: %sabled\n", info->swapBuffersWait
> ? "en" : "dis");
> +    if (!info->use_glamor) {
> +	info->swapBuffersWait = xf86ReturnOptValBool(info->Options,
> +
> OPTION_SWAPBUFFERS_WAIT, TRUE);
> +	xf86DrvMsg(pScrn->scrnIndex, X_INFO,
> +		   "SwapBuffers wait for vsync: %sabled\n", info-
> >swapBuffersWait ? "en" : "dis");
> +    }
> 
>      if (xf86ReturnOptValBool(info->Options, OPTION_DELETE_DP12, FALSE)) {
>          info->drmmode.delete_dp_12_displays = TRUE;
> --
> 2.11.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:[~2017-01-31 15:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-31  7:27 [PATCH xf86-video-ati] Don't handle Option "SwapbuffersWait" at all with glamor Michel Dänzer
     [not found] ` <20170131072734.3290-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-01-31 15:30   ` 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.