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

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

@⁠klikso on GitHub · 2026-11-25 01:11 UTC · original
klikso:docs/gpuav-known-problems → main · +1 −0 · 1 files · 1 commits · open

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

**@⁠klikso** on GitHub · 2026-11-25 01:11 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1475) `klikso:docs/gpuav-known-problems` → `main` · +1 −0 · 1 files · 1 commits · open Claimed in the coordination issue as: DOC-GPUAV-LAYER-FALSE-POSITIVES ([claim](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14)) ### 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`](https://github.com/KhronosGroup/Vulkan-ValidationLayers/blob/v1.4.357/layers/gpuav/validation_cmd/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 - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] 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](https://claude.com/claude-code)
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 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:53:17 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 15:36 UTC · original

Reviewed 36bdcc11: 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

**@⁠PierreEbele** on GitHub · 2026-11-25 15:36 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1475#issuecomment-7167109206) Reviewed 36bdcc11: 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
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/1475/head:github-bot/gh-1475'
git switch 'github-bot/gh-1475'

Merge

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