Test native Linux Vulkan X11 swapchain resize and window pixels #118

Open
github-bot wants to merge 1 commit from github-bot/gh-118 into main AGit
Owner

@⁠Yoshi-233 on GitHub · 2026-11-25 02:31 UTC · original
Yoshi-233:test/vulkan-x11-swapchain-resize → main · +526 −0 · 3 files · 1 commits · open

Refs #30.

This opt-in CTest presents the existing raster shaders in an X11 window, resizes it from 96×96 to 160×90 to 73×121 and back to 96×96, and checks eight complete window images with XGetImage. It supplies the previous swapchain at each recreation and waits for both the submit and presentation fences before reusing synchronization objects. The position check tolerates coverage rounding at the edge of the triangle.

Reproduce

With Xlib headers, Xvfb, xauth and the Vulkan development tools installed:

cmake -S fixtures/native-linux-vulkan -B build-x11 -DNATIVEX_TEST_X11_RESIZE=ON
cmake --build build-x11 --parallel
xvfb-run -a -s '-screen 0 256x256x24' \
  ctest --test-dir build-x11 -R '^native_linux_vulkan_x11_swapchain_resize$' --no-tests=error -V

Local checks

Based on b3087ce0ab191227dc9e7af37cab97a0b097bb98, Ubuntu 24.04.5 x86-64 and Vulkan SDK 1.4.335.0. I selected the ICD explicitly and enabled Khronos synchronization validation.

Backend Full opt-in suite Additional resize runs Pixels checked per resize run
Entry-level NVIDIA GPU, driver 595.99.02 4/4 3/3 83,330
Mesa llvmpipe 25.2.8 4/4 3/3 83,330

The default headless suite passed 3/3. Removing DISPLAY produced an explicit skip in the opt-in test. Substituting a red fragment shader produced an image-oracle failure on llvmpipe. These runs exercise X11 presentation and swapchain lifetime on Xvfb. Physical scanout and device-loss recovery remain open.

**@⁠Yoshi-233** on GitHub · 2026-11-25 02:31 UTC · [original](https://github.com/ProhorovIlja/NativeX-Runtime/pull/118) `Yoshi-233:test/vulkan-x11-swapchain-resize` → `main` · +526 −0 · 3 files · 1 commits · open Refs #30. This opt-in CTest presents the existing raster shaders in an X11 window, resizes it from 96×96 to 160×90 to 73×121 and back to 96×96, and checks eight complete window images with XGetImage. It supplies the previous swapchain at each recreation and waits for both the submit and presentation fences before reusing synchronization objects. The position check tolerates coverage rounding at the edge of the triangle. ## Reproduce With Xlib headers, Xvfb, xauth and the Vulkan development tools installed: ```sh cmake -S fixtures/native-linux-vulkan -B build-x11 -DNATIVEX_TEST_X11_RESIZE=ON cmake --build build-x11 --parallel xvfb-run -a -s '-screen 0 256x256x24' \ ctest --test-dir build-x11 -R '^native_linux_vulkan_x11_swapchain_resize$' --no-tests=error -V ``` ## Local checks Based on `b3087ce0ab191227dc9e7af37cab97a0b097bb98`, Ubuntu 24.04.5 x86-64 and Vulkan SDK 1.4.335.0. I selected the ICD explicitly and enabled Khronos synchronization validation. | Backend | Full opt-in suite | Additional resize runs | Pixels checked per resize run | | --- | ---: | ---: | ---: | | Entry-level NVIDIA GPU, driver 595.99.02 | 4/4 | 3/3 | 83,330 | | Mesa llvmpipe 25.2.8 | 4/4 | 3/3 | 83,330 | The default headless suite passed 3/3. Removing DISPLAY produced an explicit skip in the opt-in test. Substituting a red fragment shader produced an image-oracle failure on llvmpipe. These runs exercise X11 presentation and swapchain lifetime on Xvfb. Physical scanout and device-loss recovery remain open.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:08:07 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/118/head:github-bot/gh-118'
git switch 'github-bot/gh-118'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-118'
git switch 'github-bot/gh-118'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-118'
git switch 'github-bot/gh-118'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-118'
git switch 'main'
git merge --squash 'github-bot/gh-118'
git switch 'main'
git merge --ff-only 'github-bot/gh-118'
git switch 'main'
git merge 'github-bot/gh-118'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.