Skip to content

test(depth24): keep GPU-assisted dispatches out of the replay statistics check - #8544

Open
Raxstreams wants to merge 1 commit into
ItsNotRexed:mainfrom
Raxstreams:codex/depth24-statistics-observation
Open

Raxstreams wants to merge 1 commit into
ItsNotRexed:mainfrom
Raxstreams:codex/depth24-statistics-observation

Conversation

@Raxstreams

Copy link
Copy Markdown

Claimed in the coordination issue as: depth24_convert pipeline statistics under GPU-assisted validation, following the original test finding. No item ID has been assigned.

What and why

The depth-conversion fixture checks that internal D24 and RGB96 dispatches do not count toward an application pipeline-statistics query (D3D-162). GPU-assisted Vulkan validation can add its own compute work while validating a buffer-to-image copy. The raw CSInvocations counter then includes that work. Khronos validation settings.

The fixture now observes the Vulkan calls issued by replay and checks that at least the four conversion dispatches occur with no query segment open. It still checks that the GPU writes every counter and that the other ten counters are zero. The layer remains enabled throughout the GPU-assisted test.

Tested

  • Windows 11 25H2, MSVC 19.44, GeForce RTX 3080 Ti (617.14), Khronos validation 1.4.369. On the original base, plain validation passed. GPU-assisted validation with copy checks enabled failed at the zero-counter assertion. Toggling only the layer's buffer-copy checks in a control run made the original assertion pass.
  • depth24_convert and replay_query_predication passed with both plain and GPU-assisted validation, with the normal GPU-assisted copy checks enabled.
  • A deliberate change put the upload conversion back inside the active query. The new observation assertion detected it. Restoring the runtime source and rebuilding made depth24_convert pass again under GPU-assisted validation.
  • Compileall, make_game.py --help and git diff --check passed.
  • The full translator suite ran 5,957 tests across 447 files. It reproduced the two existing image-test failures tracked by tests: fix image atomics guard and image_store d16 tests after #4473 and #6805 #7608. This PR only changes the C++ fixture.

AI-assisted: yes (Codex).

Checklist

  • Synthetic inputs only. The changed file passed the game-data check.
  • Translator contract entry (inapplicable to this test-only change).

@davyvs

davyvs commented Nov 23, 2026

Copy link
Copy Markdown

Tested 5b996602a on RTX 4070 Ti (Ada), NVIDIA 621.14, Windows 11 Pro 26300, MSVC 19.44.35225, Vulkan SDK 1.4.363.0, full scripts\build_runtime.ps1 build: pass.

  • ctest -R ^depth24: depth24_convert passes on the PR (7.8 s) and on main 867d922f0 (7.7 s).

No regression on this GPU; NVIDIA has native D24 so I can't show the GPU-assisted dispatch case the statistics check now excludes misbehaving on main. No game files. AI-assisted (Claude).

@RAINighty

Copy link
Copy Markdown

Tested 5b996602a merged with main 867d922f0 (clean merge) on Windows 11 (10.0.26300), Intel Core i7-14650HX, hybrid-GPU laptop (RTX 5060 + Intel UHD, no adapter forced), MSVC 19.44.35228, RelWithDebInfo (Ninja): pass.

  • depth24_convert passes with this PR (10.7 s); on main it passes too (15.6 s), so there is no failure here for this change to fix.
  • Test-only change, so no implementation to run a control against.
  • Code not reviewed beyond running it. No game files.

AI-assisted (Claude Code).

@egexon

egexon commented Nov 23, 2026

Copy link
Copy Markdown

Tested 5b99660 (merged onto main 867d922) on RTX 5070, NVIDIA 621.24, Windows 11 (build 26200), Vulkan validation layer on (LEONIDA_VK_VALIDATION=1, VK_VALIDATION_VALIDATE_SYNC=1): pass.

  • depth24_convert: passes with this PR, and passes on main.

Ran the tests that belong to the test files this PR changes (ctest entries, or the test program directly when it is not registered), with no game files (LEONIDA_GAME_DIR unset). AI-assisted (Claude Code).

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.

5 participants