WIP: replace libwayland with shimizu #1295

Draft
leroycep wants to merge 1 commit from leroycep/shimizu-wayland-backend into main
leroycep commented 2024-10-26 03:23:06 +00:00 (Migrated from github.com)

Not done yet, some of the things that need work:

  • The Vulkan Swapchain extension is mysteriously working, even though I am passing a null pointer to it. Might just be my setup that it is working on though.

  • Need to figure if we can proxy libwayland functions properly

  • Do a treatment similar to wayland-headers (or just reuse wayland-headers?) so the build is not reliant on the freedesktop gitlab servers.

  • By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.

Edit: I figured out why the swapchain is mysteriously working:

warning: unknown object id = 0x32
error(mach): An unknown error occured while trying to connect to Wayland

Falling back to X11

I'm an idiot 🤦

Not done yet, some of the things that need work: - [ ] The Vulkan Swapchain extension is mysteriously working, even though I am passing a null pointer to it. Might just be my setup that it is working on though. - [ ] Need to figure if we can proxy `libwayland` functions properly - [ ] Do a treatment similar to `wayland-headers` (or just reuse `wayland-headers`?) so the build is not reliant on the freedesktop gitlab servers. - [x] By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right. Edit: I figured out why the swapchain is mysteriously working: ``` warning: unknown object id = 0x32 error(mach): An unknown error occured while trying to connect to Wayland Falling back to X11 ``` I'm an idiot :facepalm:
This pull request has changes conflicting with the target branch.
  • build.zig
  • build.zig.zon
  • src/core/linux/Wayland.zig
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin leroycep/shimizu-wayland-backend:leroycep/shimizu-wayland-backend
git switch leroycep/shimizu-wayland-backend

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff leroycep/shimizu-wayland-backend
git switch leroycep/shimizu-wayland-backend
git rebase main
git switch main
git merge --ff-only leroycep/shimizu-wayland-backend
git switch leroycep/shimizu-wayland-backend
git rebase main
git switch main
git merge --no-ff leroycep/shimizu-wayland-backend
git switch main
git merge --squash leroycep/shimizu-wayland-backend
git switch main
git merge --ff-only leroycep/shimizu-wayland-backend
git switch main
git merge leroycep/shimizu-wayland-backend
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hexops/mach!1295
No description provided.