From ced38b1b0f46f9fbdf9d37644d27bdbd2a29af1d Mon Sep 17 00:00:00 2001 From: Tom Englund Date: Sun, 24 Aug 2025 09:57:37 +0200 Subject: disable buffer readability checks on intel (#11515) * dmabuf: disable buffer read check on intel readability checks directly on buffer fds on some intel laptops is broken, see https://gitlab.freedesktop.org/drm/intel/-/issues/9415 * sync: use rvalue ref in addwaiter doonreadable use rvalue reference in addwaiter and doonreadable, because we store the function in the SReadableWaiter a lot of the time, move it into place there when that happends or let it go out of scope after function call. --- src/protocols/DRMSyncobj.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/protocols/DRMSyncobj.hpp') diff --git a/src/protocols/DRMSyncobj.hpp b/src/protocols/DRMSyncobj.hpp index b330818d..4fcbaf09 100644 --- a/src/protocols/DRMSyncobj.hpp +++ b/src/protocols/DRMSyncobj.hpp @@ -20,7 +20,7 @@ class CDRMSyncPointState { const uint64_t& point(); WP timeline(); Hyprutils::Memory::CUniquePointer createSyncRelease(); - bool addWaiter(const std::function& waiter); + bool addWaiter(std::function&& waiter); bool committed(); Hyprutils::OS::CFileDescriptor exportAsFD(); void signal(); -- cgit v1.2.3