diff --git a/tools/gamescope/patches/0998-probe-producer-syncfile-transport.patch b/tools/gamescope/patches/0998-probe-producer-syncfile-transport.patch index 3d96323da7..ad8c2131c9 100644 --- a/tools/gamescope/patches/0998-probe-producer-syncfile-transport.patch +++ b/tools/gamescope/patches/0998-probe-producer-syncfile-transport.patch @@ -249,7 +249,7 @@ index ae767b6..99b32ae 100644 uint32_t m_uMangoMsgType = 0; diff --git a/src/droiddeck_producer_fence.hpp b/src/droiddeck_producer_fence.hpp new file mode 100644 -index 0000000..2137e39 +index 0000000..7c6181a --- /dev/null +++ b/src/droiddeck_producer_fence.hpp @@ -0,0 +1,67 @@ @@ -294,9 +294,9 @@ index 0000000..2137e39 + ProducerFence &operator=(const ProducerFence &) = delete; + ~ProducerFence() { if (m_fd >= 0) close(m_fd); } + -+ int Status() const { return ProducerFenceStatus(m_fd); } ++ int SyncStatus() const { return ProducerFenceStatus(m_fd); } + int Dup() const { return m_fd < 0 ? -1 : fcntl(m_fd, F_DUPFD_CLOEXEC, 0); } -+ int SignaledFd() const { return Status() == 1 ? m_fd : -1; } ++ int SignaledFd() const { return SyncStatus() == 1 ? m_fd : -1; } + int Fd() const { return m_fd; } + int TakeFd() { return std::exchange(m_fd, -1); } + @@ -350,7 +350,7 @@ index 8ae3b71..235cfc0 100644 } diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp -index c2e04ab..9f7d162 100644 +index c2e04ab..f5b744b 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -2559,6 +2559,7 @@ paint_cached_base_layer(const gamescope::Rc& commit, const BaseLayerIn @@ -394,7 +394,7 @@ index c2e04ab..9f7d162 100644 - if ( eventFd != gamescope::CAcquireTimelinePoint::k_InvalidEvent ) + if ( bProducerFence ) + { -+ const int status = newCommit->pProducerFence->Status(); ++ const int status = newCommit->pProducerFence->SyncStatus(); + if ( status != 0 && status != 1 ) + return; // A failed producer write may not be marked ready. + bKnownReady = status == 1; @@ -430,7 +430,7 @@ index c2e04ab..9f7d162 100644 { newCommit->Signal(); diff --git a/src/wlserver.cpp b/src/wlserver.cpp -index 84602c0..7c84979 100644 +index 84602c0..70e5ec3 100644 --- a/src/wlserver.cpp +++ b/src/wlserver.cpp @@ -57,6 +57,7 @@ @@ -579,7 +579,7 @@ index 84602c0..7c84979 100644 + return; + } + -+ const int status = fence.Status(); ++ const int status = fence.SyncStatus(); + if (status != 0 && status != 1) + { + wl_resource_post_error(manager, 0, "producer fence requires a real sync_file");