Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm Sync access path to vblank co...



details:   https://anonhg.NetBSD.org/src/rev/0d9da0919336
branches:  trunk
changeset: 1027838:0d9da0919336
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 00:55:43 2021 +0000

description:
Sync access path to vblank count in wait loop.

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_atomic_helper.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0fe00fd1dd5d -r 0d9da0919336 sys/external/bsd/drm2/dist/drm/drm_atomic_helper.c
--- a/sys/external/bsd/drm2/dist/drm/drm_atomic_helper.c        Sun Dec 19 00:55:34 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_atomic_helper.c        Sun Dec 19 00:55:43 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_atomic_helper.c,v 1.7 2021/12/19 00:50:01 riastradh Exp $  */
+/*     $NetBSD: drm_atomic_helper.c,v 1.8 2021/12/19 00:55:43 riastradh Exp $  */
 
 /*
  * Copyright (C) 2014 Red Hat
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_atomic_helper.c,v 1.7 2021/12/19 00:50:01 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_atomic_helper.c,v 1.8 2021/12/19 00:55:43 riastradh Exp $");
 
 #include <linux/dma-fence.h>
 #include <linux/ktime.h>
@@ -1469,7 +1469,7 @@
                spin_lock(&dev->vbl_lock);
                DRM_SPIN_WAIT_ON(ret, &dev->vblank[i].queue, &dev->vbl_lock,
                    msecs_to_jiffies(50),
-                   (old_crtc_state->last_vblank_count !=
+                   (old_state->crtcs[i].last_vblank_count !=
                        drm_crtc_vblank_count(crtc)));
                spin_unlock(&dev->vbl_lock);
 #else



Home | Main Index | Thread Index | Old Index