Skip to content

docs/testing: three tests that fail only under GPU-assisted validation, and why (DOC-GPUAV-LAYER-FALSE-POSITIVES) - #1475

Open
klikso wants to merge 1 commit into
ProjectLeonida:mainfrom
klikso:docs/gpuav-known-problems
Open

klikso wants to merge 1 commit into
ProjectLeonida:mainfrom
klikso:docs/gpuav-known-problems

Conversation

@klikso

@klikso klikso commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: DOC-GPUAV-LAYER-FALSE-POSITIVES (claim)

What and why

Several people run the suites under GPU-assisted validation now. On this machine three runtime tests fail there and pass everywhere else, and none of the three is a fault in the layer under test or in the test. This adds one row to "Known problems" in docs/testing.md so the next person does not chase them.

  • vk_command_replay (parts H and I) and depth24_convert print VUID-vkCmdCopyBufferToImage-pRegions-07931 ("has a float value at offset N that is not in the range [0, 1]") for depth data that is in range: part H uploads i * 7 % 16 / 16, part I holds 0.25 and 0.75. The Khronos layer's check (gpuav_copy_buffer_to_image.cpp) sets row_extent = max(bufferRowLength, width * block_size), so it takes bufferRowLength, a count of texels, as a byte distance. A 4-texel row at D3D12's 256-byte pitch has bufferRowLength 64, and the check reads rows 64 bytes apart, in the padding: the offsets it reports are 64, 68, 72, 76, 128, ... In 1.4.357 block_size is also 5 for D32_SFLOAT_S8_UINT, whose depth-aspect data is 4 bytes per texel, which gives the offsets 1925, 1930, 1935, ... in depth24_convert. The layer's main today has block_size = 4 and the same row_extent line.
  • depth24_convert then stops at its pipeline-statistics check (value == 0), and the layer reports the query pool that early return leaves. With the copy check off the counters read 0 again.
  • pipeline_cache_seed ends with "cache does not hit on the runtime's device". It passes with the layer's shader instrumentation off.

The row gives the setting that turns the one check off for the run. I have not reported the row-distance bug to the Khronos repository.

Tested

Windows 11 26200.9974, RTX 3060 Ti (driver 621.14), main b4b7756e8 built with MSVC 19.44, VK_LAYER_KHRONOS_validation 1.4.357 (conda-forge), each program run by itself with LEONIDA_VK_VALIDATION=1:

Test VK_KHRONOS_VALIDATION_GPUAV_ENABLE=1 the same plus the setting in the row
vk_command_replay exit 1, 10 -07931 messages (the layer's duplicate limit), H and I "validation errors" ..._GPUAV_BUFFER_COPIES=false: exit 0, 0 messages, H and I "no validation errors"
depth24_convert exit 1, 10 -07931 messages, line 559: value == 0, 1 leaked VkQueryPool ..._GPUAV_BUFFER_COPIES=false: exit 0, 0 messages
pipeline_cache_seed exit 1, "cache does not hit" ..._GPUAV_SHADER_INSTRUMENTATION=false: exit 0, "cache hits"

Without GPU-assisted validation (LEONIDA_VK_VALIDATION=1 alone) pipeline_cache_seed exits 0 on this build, and a validated ctest of main 4a50cafc7 yesterday passed all three (315 of 316; the one failure was xmem, which #1316 addresses).

  • The 12 tests/test_docs_*.py files: 47 passed.
  • python -I scripts/check_no_game_data.py docs/testing.md: no hits. git diff --check: clean.

GPUs tested: NVIDIA GeForce RTX 3060 Ti (Ampere), driver 621.14, Vulkan 1.4.357, Windows 11 26200

AI-assisted: yes (Claude Code; run and measured on the machine above, layer source read at tag v1.4.357 and at main)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed: n/a (docs only).

🤖 Generated with Claude Code

…n, and why (DOC-GPUAV-LAYER-FALSE-POSITIVES)

vk_command_replay (parts H and I) and depth24_convert report
VUID-vkCmdCopyBufferToImage-pRegions-07931 for depth data that is in range,
and pipeline_cache_seed misses its cache, when the Khronos layer runs with
GPU-assisted validation. The Known-problems row says what the layer does
(read in its source, confirmed by turning the one check off) and which
setting to use for the run.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@PierreEbele

Copy link
Copy Markdown
Contributor

Reviewed 36bdcc1: docs-only Known-problems row for vk_command_replay (parts H/I), depth24_convert and pipeline_cache_seed under GPU-assisted validation. No GPU here, so the runtime tests were not run; a probe of the repo confirmed every repo-side claim: the ctest names, the parts' "validation errors" endings, bufferRowLength = 256/4 = 64 for part H's 4-texel D32 rows (reproducing the row's 64/68/72/76/128 offsets in padding), depth24_convert's EXPECT(value == 0) and the query-pool teardown its early exit skips, pipeline_cache_seed's "cache does not hit on the runtime's device" message, and the VK_KHRONOS_VALIDATION_* naming vk_validation.h documents. The layer-side claims (1.4.357, gpuav_copy_buffer_to_image.cpp, the 25 Nov 2026 layer-main fix, the two GPUAV_* toggles) could not be checked offline; worth someone with a GPU confirming one workaround on the way in. Docs-rows test passes on the branch, main and the merged page. No findings.

AI-assisted review.

Recommendation: Merge

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.

2 participants