Skip to content

Document GPU-assisted validation false positives for depth copies - #8400

Open
danzig666 wants to merge 1 commit into
ItsNotRexed:mainfrom
danzig666:docs/depth-gpuav-false-positives
Open

danzig666 wants to merge 1 commit into
ItsNotRexed:mainfrom
danzig666:docs/depth-gpuav-false-positives

Conversation

@danzig666

Copy link
Copy Markdown

Change

Document two GPU-assisted validation false positives from Vulkan SDK 1.4.363.0 that affect the depth-copy fixtures. The note links the measured report, the tagged layer source, and the Khronos stride fix. It leaves the runtime depth behavior as-is.

Coordination claim

Verification

Checked the source of the tagged validation layer against the synthetic depth24_convert and vk_command_replay fixtures. A CPU calculation reproduces the reported unaligned byte offset in the first fixture and the wrong row offsets in the second.

The table shape, whitespace, and no-game-data checks pass. The repository link test still reports the two known base findings (#7217 and #7532). GPU validation was not run locally.

AI-assisted: yes (Codex).

@wavehs

wavehs commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Tested ac57e0e0 merged onto main 1befe1dc6 on macOS arm64 (Apple M3 Pro, Python 3.15.2, CPU only, no GPU and no game files): pass. The row matches the tagged layer source and the Khronos record.

The layer claim, checked at the tag

vulkan-sdk-1.4.363.0/layers/gpuav/validation_cmd/gpuav_copy_buffer_to_image.cpp (fetched raw) has exactly:

  • const uint32_t block_size = image_state->GetFormat() == VK_FORMAT_D32_SFLOAT ? 4 : 5;
  • gpu_region.row_extent = std::max(cpu_region.bufferRowLength, image_extent.width * block_size);

so a depth-only copy of D32_SFLOAT_S8_UINT uses a 5-byte stride and compares a texel count with a byte count, as the row says.

The Khronos record

  • Issue 13510 exists, is titled "GPU-AV: false VUID-vkCmdCopyBufferToImage-pRegions-07931 for the depth aspect of VK_FORMAT_D32_SFLOAT_S8_UINT (5-byte texel stride)", reports the same 07931 with offsets in steps of 20, and points at the same two lines.
  • PR 13521 ("gpuav: Fix Copying 5 bytes for D32S8") is merged (8facf908), so "a layer that includes the D32S8 stride fix" is the right advice. The SDK 1.4.363.0 tag predates the fix, which is why the row is needed.

The fixtures

  • runtime/test/vk_command_replay_test.cpp (Part H) uploads D32 depth from floats with vkCmdCopyBufferToImage (:974-1031), which is the repro shape.
  • runtime/test/depth24_convert_test.cpp reaches the same buffer→image upload through the depth24 replay (runtime/src/vulkan_replay.h:3664), so "in depth24_convert or vk_command_replay" holds.
  • The linked D3D-877 report exists (comment by @marso006, 2026-11-23 18:17, full ctest under GPU-AV on an RTX 5060 Ti).

Checks

  • tests/test_docs_table_rows.py, test_docs_list_items.py, test_docs_repeated_lines.py: OK.
  • tests/test_docs_links.py: only the two known main problems (docs/dev-tools.md anchor, docs/gpu_test_results.md); the new links are external and the table shape is fine.
  • python -I scripts/check_no_game_data.py docs/testing.md: exit 0.

No change requested.

AI-assisted (an agent session).

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