Mesa (main): lavapipe: Switch to the common sync framework

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Apr 6 01:05:45 UTC 2022


Module: Mesa
Branch: main
Commit: 3b547a9b581618a7abfa17128c371cd69a64c8e8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3b547a9b581618a7abfa17128c371cd69a64c8e8

Author: Jason Ekstrand <jason.ekstrand at collabora.com>
Date:   Tue Mar 29 14:07:18 2022 -0500

lavapipe: Switch to the common sync framework

The common Vulkan sync framework will do most of the queueing for us.
It will even sort out timeline semaphore dependencies and ensure
everything executes in-order.  All we have to do is make sure our
vk_sync type implements VK_SYNC_FEATURE_WAIT_PENDING.  This lets us get
rid of a big pile of code.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15651>

---

 .../frontends/lavapipe/ci/lvp-asan-fails.txt       |  20 -
 src/gallium/frontends/lavapipe/lvp_device.c        | 677 ++-------------------
 src/gallium/frontends/lavapipe/lvp_pipe_sync.c     | 257 ++++++++
 src/gallium/frontends/lavapipe/lvp_private.h       |  92 +--
 src/gallium/frontends/lavapipe/lvp_query.c         |   2 +-
 src/gallium/frontends/lavapipe/lvp_wsi.c           |  29 -
 src/gallium/frontends/lavapipe/meson.build         |   1 +
 7 files changed, 334 insertions(+), 744 deletions(-)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=3b547a9b581618a7abfa17128c371cd69a64c8e8


More information about the mesa-commit mailing list