Repository navigation
Conversation
…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>
|
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 |
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.mdso the next person does not chase them.vk_command_replay(parts H and I) anddepth24_convertprintVUID-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 uploadsi * 7 % 16 / 16, part I holds 0.25 and 0.75. The Khronos layer's check (gpuav_copy_buffer_to_image.cpp) setsrow_extent = max(bufferRowLength, width * block_size), so it takesbufferRowLength, a count of texels, as a byte distance. A 4-texel row at D3D12's 256-byte pitch hasbufferRowLength64, and the check reads rows 64 bytes apart, in the padding: the offsets it reports are 64, 68, 72, 76, 128, ... In 1.4.357block_sizeis also 5 forD32_SFLOAT_S8_UINT, whose depth-aspect data is 4 bytes per texel, which gives the offsets 1925, 1930, 1935, ... indepth24_convert. The layer'smaintoday hasblock_size = 4and the samerow_extentline.depth24_convertthen 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_seedends 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),
mainb4b7756e8built with MSVC 19.44,VK_LAYER_KHRONOS_validation1.4.357 (conda-forge), each program run by itself withLEONIDA_VK_VALIDATION=1:VK_KHRONOS_VALIDATION_GPUAV_ENABLE=1vk_command_replay-07931messages (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-07931messages,line 559: value == 0, 1 leakedVkQueryPool..._GPUAV_BUFFER_COPIES=false: exit 0, 0 messagespipeline_cache_seed..._GPUAV_SHADER_INSTRUMENTATION=false: exit 0, "cache hits"Without GPU-assisted validation (
LEONIDA_VK_VALIDATION=1alone)pipeline_cache_seedexits 0 on this build, and a validatedctestofmain4a50cafc7yesterday passed all three (315 of 316; the one failure wasxmem, which #1316 addresses).tests/test_docs_*.pyfiles: 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.357and atmain)Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed: n/a (docs only).🤖 Generated with Claude Code