All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH xf86-video-ati] Bail early from drm_wait_pending_flip if there's no pending flip
@ 2018-09-07 16:22 Michel Dänzer
       [not found] ` <20180907162239.22199-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Michel Dänzer @ 2018-09-07 16:22 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

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

No need to process any events in that case.

(Ported from amdgpu commit ca5eb9894fff153c0a1df7bdc4a4745713309e27)

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

diff --git a/src/radeon_drm_queue.c b/src/radeon_drm_queue.c
index bf1650ea9..ea78e8e2b 100644
--- a/src/radeon_drm_queue.c
+++ b/src/radeon_drm_queue.c
@@ -284,7 +284,8 @@ void radeon_drm_wait_pending_flip(xf86CrtcPtr crtc)
 
     drmmode_crtc->wait_flip_nesting_level++;
 
-    while (!xorg_list_is_empty(&radeon_drm_flip_signalled)) {
+    while (drmmode_crtc->flip_pending &&
+	   !xorg_list_is_empty(&radeon_drm_flip_signalled)) {
 	e = xorg_list_first_entry(&radeon_drm_flip_signalled,
 				  struct radeon_drm_queue_entry, list);
 	radeon_drm_queue_handle_one(e);
-- 
2.19.0.rc1

_______________________________________________
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] Bail early from drm_wait_pending_flip if there's no pending flip
       [not found] ` <20180907162239.22199-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
@ 2018-09-11 14:46   ` Alex Deucher
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Deucher @ 2018-09-11 14:46 UTC (permalink / raw)
  To: Michel Dänzer; +Cc: amd-gfx list

On Fri, Sep 7, 2018 at 12:25 PM Michel Dänzer <michel@daenzer.net> wrote:
>
> From: Michel Dänzer <michel.daenzer@amd.com>
>
> No need to process any events in that case.
>
> (Ported from amdgpu commit ca5eb9894fff153c0a1df7bdc4a4745713309e27)
>
> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>

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

> ---
>  src/radeon_drm_queue.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/radeon_drm_queue.c b/src/radeon_drm_queue.c
> index bf1650ea9..ea78e8e2b 100644
> --- a/src/radeon_drm_queue.c
> +++ b/src/radeon_drm_queue.c
> @@ -284,7 +284,8 @@ void radeon_drm_wait_pending_flip(xf86CrtcPtr crtc)
>
>      drmmode_crtc->wait_flip_nesting_level++;
>
> -    while (!xorg_list_is_empty(&radeon_drm_flip_signalled)) {
> +    while (drmmode_crtc->flip_pending &&
> +          !xorg_list_is_empty(&radeon_drm_flip_signalled)) {
>         e = xorg_list_first_entry(&radeon_drm_flip_signalled,
>                                   struct radeon_drm_queue_entry, list);
>         radeon_drm_queue_handle_one(e);
> --
> 2.19.0.rc1
>
> _______________________________________________
> 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-09-11 14:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-07 16:22 [PATCH xf86-video-ati] Bail early from drm_wait_pending_flip if there's no pending flip Michel Dänzer
     [not found] ` <20180907162239.22199-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org>
2018-09-11 14:46   ` 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.