Skip to content

test(kyty): validate indirect dispatch dimensions across writes - #329

Open
mjnhbg3 wants to merge 2 commits into
simnJS:AnyKytyfrom
mjnhbg3:fix/kyty-indirect-dispatch-dimensions
Open

mjnhbg3 wants to merge 2 commits into
simnJS:AnyKytyfrom
mjnhbg3:fix/kyty-indirect-dispatch-dimensions

Conversation

@mjnhbg3

@mjnhbg3 mjnhbg3 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What

Add a synthetic Kyty shim regression for #325. A compute shader writes a sentinel beside the indirect argument dimensions. The test checks CPU-written dimensions, a zero dimension, and dimensions produced by another GPU dispatch; an atomic output counter makes the executed workgroup counts observable. It also checks that the CPU write and indirect dispatch do not read back the neighboring GPU-written word.

The base renderer already handles these cases, so this PR adds the regression without changing dispatch behavior. It targets AnyKyty at 688dbf1.

Tested

  • Windows 11, Intel(R) Graphics driver 32.0.101.8331: cmake --build build --target kyty_shim_indirect_dispatch_dimensions_tests --parallel 6.
  • ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer ctest --test-dir build -R '^kyty_shim_indirect_dispatch_dimensions$' -V --timeout 300: passed. Direct count 1; CPU-written dimensions total 7; zero dimensions remain 7; GPU-written dimensions total 19. Readback count stayed 1 -> 1 across the CPU write and indirect dispatch. Vulkan loader inserted validation layer 1.4.350; no missing-layer warning or VUID- errors.
  • The first ASan CI run included this Vulkan probe in its CPU sanitizer suite and crashed inside lavapipe. The registration now omits the GPU-only test for ASan; normal Linux and lavapipe CI both ran it successfully. The other seven ASan failures in that run were listed as known by the sanitizer reporter.
  • PR CI at a40ac8161d: all checks passed. The new test passed on Linux Kyty and Mesa llvmpipe; Windows CI skipped it because its runner has no usable Vulkan GPU, while the local Intel GPU run above passed. ASan reported 103 tests, 81 passed, 15 skipped and seven known failures, with no new failure.
  • python3 tools/check_kyty_settings.py: passed. python3 tools/check_conventions.py --base origin/AnyKyty: passed. python3 tools/pr_overlap.py --repo simnJS/AnyPS5 --base AnyKyty --branch fix/kyty-indirect-dispatch-dimensions --jobs 2: no overlap.
  • Genuine warning fixtures: python3 -I tools/tests/test_kyty_pgo.py (7/7), python3 -I tools/tests/test_relinker_fuzz_fixture_warnings.py (9/9), python3 -I tools/tests/test_check_kyty_settings.py (19/19). Checked the exact-base Linux Kyty CI log with tools/kyty_pgo.py report --annotate (exit 0; advisory: 423 functions, 18.95% profile weight, 4 of 10 hottest).
  • No title or homebrew run; all test inputs are synthetic.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: Fixes Validate indirect dispatch dimensions across CPU and GPU writes #325
  • Unblocks: none
  • GPUs tested: Intel(R) Graphics, driver 32.0.101.8331, Windows 11; Mesa llvmpipe (lavapipe), Mesa 25.2.8, Ubuntu 24.04.5 CI
  • AI-assisted: yes

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.

Validate indirect dispatch dimensions across CPU and GPU writes

1 participant