summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-04-08Bump versionupstream/latestManuel Stoeckl
2023-04-02Handle pipe poll errors by closing pipeManuel Stoeckl
2023-03-29Update core Wayland protocol file and shm formatsManuel Stoeckl
Note: the version with updated shm formats has not yet been released, but as updates to the wl_shm format list just pull values from libdrm, it is very unlikely that libwayland will conflict.
2023-03-29Optimize minimal build by defaultManuel Stoeckl
2023-03-26Disable CIManuel Stoeckl
2023-03-25Fix a memory leakManuel Stoeckl
This was introduced by a0f6bfa191f55b99e4ff68dd0063aa0c0e12dcbd incorrectly checking when to increase the value of cxs->last_confirmed_msgno. As a result, one of the two Waypipe processes would leak all the messages sent to the other process.
2023-03-25Move acknowledgement logic to separate functionManuel Stoeckl
2023-03-25Log when metadata messages receivedManuel Stoeckl
2023-03-23Avoid duplicate video encode setupManuel Stoeckl
2023-03-11Bump versionManuel Stoeckl
2023-03-10Fix a crash with ffmpeg 6.0Manuel Stoeckl
2023-02-04Allow --drm-node option in ssh and client modesManuel Stoeckl
2023-01-29Provide dmabuf main device from opened drm fdManuel Stoeckl
2022-11-25Avoid acquiring controlling terminalManuel Stoeckl
Waypipe never has a reason to do this, so ensure it can't even accidentally happen by adding O_NOCTTY.
2022-11-05Update issue filing guidelinesManuel Stoeckl
2022-11-02Fix dmabuf-feedback event orderingManuel Stoeckl
2022-10-29Bump versionv0.8.4Manuel Stoeckl
2022-10-29Allow concurrent read/write of dmabufManuel Stoeckl
2022-10-29Deduplicate dmabuf format restriction logicManuel Stoeckl
Also, blacklist modifiers with color-control surfaces, as these are not properly handled yet.
2022-10-29Remove dmabuf fd deduplication logicManuel Stoeckl
This gives no benefit for single-plane formats.
2022-10-23Adjust dmabuf stride when using wl_drmManuel Stoeckl
2022-10-22Fix dmabuf write bug with amdgpuManuel Stoeckl
2022-10-18Remove unused argument from map_dmabufManuel Stoeckl
2022-10-17Fix negative-sized memcpy bugManuel Stoeckl
2022-10-17Add missing castsManuel Stoeckl
2022-10-17Use local stride when computing diffsManuel Stoeckl
The new 'sfd->dmabuf_warped' cache is not strictly necessary, but without it the diff would be much trickier to compute.
2022-10-16Fix strict prototype warningsManuel Stoeckl
2022-10-16Split initial mirror synchronization over threadsManuel Stoeckl
2022-10-16Use local stride when applying diffsManuel Stoeckl
2022-10-16Remove modifier gate for video encodingManuel Stoeckl
The video presented by gbm_bo_map is linear in either case.
2022-10-16Optinally permit tiled formats with dmabuf v4Manuel Stoeckl
2022-10-16Fix a stride mismatch bug with video encodingManuel Stoeckl
2022-10-16Serialize dmabuf plane info instead of copyingManuel Stoeckl
2022-10-01Remove unnecessary delayManuel Stoeckl
2022-10-01Fix typo/missing negationManuel Stoeckl
2022-10-01Clarify unidentified protocol messageManuel Stoeckl
2022-08-07Bump versionv0.8.3Manuel Stoeckl
2022-08-07Minor fd_mirror test adjustmentsManuel Stoeckl
Increase the round count, and silence a warning when the only change is a shm buffer extension.
2022-08-07Remove unused argumentManuel Stoeckl
2022-08-07Fix use-after-free in zeroed_aligned_reallocManuel Stoeckl
2022-08-07Delay switch to default LZ4 compression againManuel Stoeckl
2022-08-07Use O_PATH to open directories on LinuxManuel Stoeckl
2022-07-17Fix compile error when dmabufs disabledManuel Stoeckl
2022-07-17Remove unused path from make_dmabufManuel Stoeckl
2022-07-17Fix use of uninitialized memoryManuel Stoeckl
2022-07-17Use longer paths in startup failure testManuel Stoeckl
2022-07-17Fix handling of relative socket pathsManuel Stoeckl
2022-07-17Use posix_spawn to start server commandManuel Stoeckl
2022-07-17Zero initialize cmsg dataManuel Stoeckl
2022-07-17Rewrite socket connect/bind/unlink handlingManuel Stoeckl
This commit changes the way socket files are bound, connected to, and unlinked. Instead of directly operating on the socket path, Waypipe now opens the folder which will contain the socket, fchdirs to it, operates on the socket filename, and then fchdirs back to the current working directory. This new approach: * Allows for opening slightly longer file paths, as long as the filename part doesn't exceed sizeof(sockaddr_un->sun_path). * Avoids some race conditions where the folder part of the path is renamed and replaced by a new folder between the times bind and unlink are called. Libwayland does not support longer file paths, so this change does not have any effect for typical programs. Because Waypipe is not a library, and the relevant code is single threaded; calling fchdir to go back and forth between folders does not interfere with any other operations. If POSIX ever gains support for connectat, bindat, and unlinkat, then the fchdir trick can be removed.