mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:50:52 +01:00
[PR #1475] docs/testing: three tests that fail only under GPU-assisted validation, and why (DOC-GPUAV-LAYER-FALSE-POSITIVES) #1505
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1505
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
36bdcc1docs/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.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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.