[Bug 286311] x11-wm/sway: fails to start on amdgpu after ports bb43067a6928

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286311

--- Comment #14 from Evgenii Khramtsov <[email protected]> ---
(In reply to Evgenii Khramtsov from comment #13)

Opting out from explicit sync seemed fine for one day (no panics, software
works etc), one can also test (seems to work too):

diff --git a/drivers/gpu/drm/drm_gem_atomic_helper.c
b/drivers/gpu/drm/drm_gem_atomic_helper.c
index 4fb8acd280..f1aa85f5b7 100644
--- a/drivers/gpu/drm/drm_gem_atomic_helper.c
+++ b/drivers/gpu/drm/drm_gem_atomic_helper.c
@@ -20,14 +20,13 @@ drm_gem_plane_helper_prepare_fb(struct drm_plane *dp,
                obj = dps->fb->obj[0];
                if (obj == NULL)
                        return -EINVAL;
-               if (dps->fence) {
-                       printf("%s: explicit fence not handled\n", __func__);
-                       return -EINVAL;
-               }
                r = dma_resv_get_singleton(obj->resv, DMA_RESV_USAGE_WRITE,
&f);
                if (r)
                        return r;
-               dps->fence = f;
+               if (dps->fence)
+                       dma_fence_put(f);
+               else
+                       dps->fence = f;
        }

        return 0;

Obtained from: https://github.com/openbsd/src/commit/4ae46dfd37dc

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.