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

Open
opened 2026-11-26 20:21:28 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1475
Author: @klikso
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: docs/gpuav-known-problems


📝 Commits (1)

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

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 docs/testing.md (+1 -0)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1475 **Author:** [@klikso](https://github.com/klikso) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/gpuav-known-problems` --- ### 📝 Commits (1) - [`36bdcc1`](https://github.com/ubiquitarianism/leonida/commit/36bdcc11480db70c120af5b5c6bc432f6d0aa014) docs/testing: three tests that fail only under GPU-assisted validation, and why (DOC-GPUAV-LAYER-FALSE-POSITIVES) ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/testing.md` (+1 -0) </details> ### 📄 Description Claimed in the coordination issue as: DOC-GPUAV-LAYER-FALSE-POSITIVES ([claim](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7149264787)) ### 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) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1505
No description provided.