Skip to content

RT-200: Synchronize Vulkan storage-image test readback with host reads - #3190

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
whattheflop:test/vk-store-host-readback
Nov 22, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
whattheflop:test/vk-store-host-readback

Conversation

@whattheflop

Copy link
Copy Markdown
Contributor

RT-200 original claim

Add a transfer-write to host-read memory barrier in vk_store_test after the last image-to-buffer copy. It covers the RGBA8, uint and sint readbacks in every mode and the volume readback in words mode. The existing queue idle wait still orders CPU reads after command completion. Vulkan synchronization specification

This is a test-only sibling of #2635 and #2894 and can merge independently of the descriptor capability changes.

Verification

  • Built vk_store_test in RelWithDebInfo on Windows x64 with MSVC 19.38 and Vulkan SDK 1.4.363.0.
  • Audited both image-to-buffer copy sites, all four destinations, and the barrier order before command buffer end, queue submit and queue idle wait. git diff --check passed.
  • Verified a clean text merge with exact Declare dynamic sampled descriptor indexing in translated SPIR-V #3045 head e14290a4b90dbe5985e7a4c7e4628cf2b878bd99 and checked patch application against the local storage-capability worktree.
  • Verification was CPU-only. Native execution is pending a coordinated run with valid synthetic shaders and the capability fixes.

AI-assisted (Codex).

@KiryaAfimin

Copy link
Copy Markdown
Contributor

Ran the pending GPU check on Windows 11 with an RTX 4070 (driver 621.01). I built f0a74afe together with the descriptor indexing changes from #3187 at a9dd2919.

All seven vk_store_test fixtures passed across the default, load, load-d16, and words modes. The RGBA8, R32_UINT, and R32_SINT checks reported zero bad texels. In words mode, all 64 words of each integer image and the 3D volume matched the expected values for cs_imgatomic, cs_imgatomic3d, and cs_resinfo.

Khronos validation 1.4.357 reported synchronization validation active in all seven runs, with no validation errors or warnings.

AI-assisted

@Doffi4

Doffi4 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Independent native GPU verification of f0a74afe on Windows 11 (26200), MSVC 19.44, Radeon 780M (26.11.2) and RTX 5060 Laptop (621.01). Built vk_store_test at the PR head and ran six synthetic inputs per device: cs_imgstore, cs_imgload, cs_imgload_d16, cs_imgatomic, cs_imgatomic3d, cs_resinfo. This exercises normal, load, packed load and words modes, including the uint/sint image and volume readbacks. All 6/6 passed on each GPU; the words modes matched the repository's literal checks. The inputs were the matching 16282101 modules and all validated. Each ICD was isolated and the device name was confirmed. Khronos validation 1.4.357 loaded with the sync-validation enable setting; no VUIDs or sync hazards were logged. Synthetic inputs only. AI-assisted testing and reporting.

@TricksterG

Copy link
Copy Markdown
Contributor

Tested on an NVIDIA GeForce RTX 5090 (Windows 11, driver 621.24, Vulkan SDK 1.4.363.0), LEONIDA_VK_VALIDATION=1, built at f0a74af: full scripts/run_gpu_tests.py run, 143/189 passed, 46 skipped (the wave64-only fixtures), 0 failed. That includes every vk_store_test case.

@javdc

javdc commented Nov 22, 2026

Copy link
Copy Markdown

Tested f0a74af on Steam Deck LCD (Jupiter), AMD Custom GPU 0405 "Van Gogh", RADV Mesa 26.2.0-devel (git-5c65d4fc31), Vulkan 1.4.350, SteamOS 3.9.5 (holo), kernel 7.2.7-valve2-2-neptune-72-g31504582a073: pass.

Full GPU suite (built PR runtime in a separate build dir due to runtime/test/vk_store_test.cpp change, then ran suite against that build):

  • python3 -I scripts/run_gpu_tests.py --build /home/deck/leonida-work/pr3190-build — 175/189 passed, 14 skipped, 0 failed. Skips are the expected D3D12-owned skips on this Deck.

AI-assisted (OpenCode).

@crastinator

Copy link
Copy Markdown
Contributor

Tested f0a74af merged into main 16282101 (clean merge) on AMD Radeon RX 6700 XT (Navi 22, gfx1031, subgroup 32..64), RADV Mesa 26.3.1, CachyOS, Linux 7.3.5, GCC 16.2.1, llvm-mc 23.1.5: pass.

  • Whole run_gpu_tests.py: 175/189 native, 175/189 with LEONIDA_W64_EMULATE=1 (the skips are the D3D12-only fixtures and ps_w64x_readlane, as on main). ctest 37/37.

No game files. AI-assisted (Claude Code).

@erickbobd

Copy link
Copy Markdown
Contributor

Tested exact PR head f0a74afef93f1a0e0419d5688fa2133882c4b929 merged onto main f847748cc76bd3777f9c070c4034eb2fc1c04e64 (local merge 502876cc), on NVIDIA GeForce RTX 5070 Ti, driver 617.14, Windows 11 build 26200, Vulkan SDK 1.4.363.0: pass.

Built vk_store_test, vk_compute_test and vk_harness from that checkout in RelWithDebInfo with MSVC toolset 14.51.36231, then ran the repository's real GPU checks with --require-pass:

  • scripts/run_gpu_tests.py --filter cs_img: 5/5 pass (cs_imgatomic, cs_imgatomic3d, cs_imgload, cs_imgload_d16, cs_imgstore).
  • --filter cs_sample_lz_int_d16: 1/1 pass.
  • --filter cs_resinfo: 1/1 pass.
  • No failures or skips. The atomics and resinfo checks compare all 64 words of each uint image, sint image and volume, including the volume copy covered by the new barrier.

Also checked compatibility with #3480: the two changes merge cleanly (local combined commit e883b316). After rebuilding vk_store_test, the new cs_sample_l_int / sample-l mode is 1/1 pass too.

The baseline also passes on this GPU; these results validate execution of the patched readback path and its unchanged expected outputs. Only synthetic fixtures were used. LLVM_MC was the existing local shim over AMD RGA 2.15's clang -cc1as (LLVM 23.0.0git), with source comments stripped.

AI-assisted: Codex reviewed the patch and performed these builds and GPU runs.

@Kam471

Kam471 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Tested f0a74afef93f1a0e0419d5688fa2133882c4b929 on Windows 11, NVIDIA GeForce RTX 5070 Ti (desktop, 16 GB), driver 621.24, Vulkan 1.4.357.

  • --filter cs_store -> 1/1 passed; translator 1/1, spirv-val 1/1.
  • --filter cs_img -> 5/5 passed (atomic/atomic3d/load/load-d16/store); cs_resinfo 1/1; cs_tbuffer_store 1/1. 8/8 vk_store_test-backed tests passed, 0 failed, 0 skipped.
  • vk_store_test has no LEONIDA_VK_VALIDATION path and is not registered with ctest, so the run is the standalone executable; no validation errors reported.

No game files.

@sperm

sperm commented Nov 22, 2026

Copy link
Copy Markdown

Tested f0a74af on AMD Radeon RX 9070 XT (RADV GFX1201) and the Ryzen 7 9800X3D iGPU (RADV RAPHAEL_MENDOCINO, gfx1036), Mesa 26.2.6, Linux 7.3.4: pass, no regressions.

  • Full python -I scripts/run_gpu_tests.py (Linux build of this branch's runtime/, LEONIDA_VK_DEVICE per GPU): 175/189 passed, 14 skipped, 0 failed on both GPUs. Compared with the same suite at the merge base 1628210 on the same machine, every test has the same result.

No game files. AI-assisted.

@ItsNotRexed
ItsNotRexed merged commit 1a53ae4 into ItsNotRexed:main Nov 22, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants