Repository navigation
GPU diagnostics: count texture data without row padding - #2528
andrewpozdnakov7-jpg wants to merge 3 commits into
Conversation
|
Automated triage for the maintainers. Merge candidate. Re-reviewed after the rebase ( Generated by Claude Code |
|
Updated the branch for 67e8ae1. The same native Windows test gets 127 of 128 nonzero dwords from the old counting logic and 3 of 4 after the patch. The test checks all four texels, the unpadded final row and a partial dword. Serial Windows/WARP GPU suite 199 passed and 1 ignored in both debug flag settings. Strict GPU Clippy in both modes and policy passed. If you fold the change or test into another commit, please preserve the Git author or add this trailer. Co-authored-by: andrewpozdnakov7-jpg andrewpozdnakov7-jpg@users.noreply.github.com |
|
I resolved the test-module conflict with #1778 and kept both fixtures in 0e48cc8. The same synthetic 256-byte-pitch fixture run with the unchanged counting logic in Both serial Windows/WARP GPU suites passed with 244 tests and one ignored. GPU Clippy with and without diagnostics and asset policy passed. Please retain the Git author when carrying the fix or tests. If folded into another commit, please add this trailer. Co-authored-by: andrewpozdnakov7-jpg andrewpozdnakov7-jpg@users.noreply.github.com |
|
Code review and hardware + WARP verification at head
Looks clean and ready to merge. |
The diagnostic probe reads the first slice of a 1D or 3D UAV texture after a dispatch. Its dword count and sample values came from pitched rows, so padding changed the denominator and could appear in the sample.
Count the unpadded bytes of each row and stop the mapped span at the last texel. A final partial dword is zero-extended. D3D12 footprint row size and pitch
The same synthetic test uses a 2 × 2 R32 layout with 256-byte row pitch, three nonzero values, and sentinel bytes in the padding. The original counting logic from 67e8ae1 reports 127 of 128 dwords set. ca477f2 reports 3 of 4 and returns all four texels in order. It also passes the unpadded final-row and partial-dword cases.
Windows/WARP serial GPU suite passed with 199 passed and 1 ignored under both D3D12 debug flag settings. Strict GPU Clippy in both modes and the asset policy passed. AI-assisted. The change affects diagnostic statistics.
Coordination claim
Please preserve the Git author when reapplying the change. If you fold the code or test into another commit, please add this trailer.
Co-authored-by: andrewpozdnakov7-jpg andrewpozdnakov7-jpg@users.noreply.github.com