Repository navigation
Runtime: support short typed buffer UAV clears (D3D-25 follow-up) - #2960
Conversation
|
Independent Windows 11 (26200) check of The unchanged PR test exits 1 when the native D3D12 reference is the RTX 5060 Laptop, at The other four original rectangles match when tested individually, including the clipped X ranges. Two in-bounds rectangles also match together. The failing comparison is the native NVIDIA reference versus the literal expectation. The Vulkan replay matches the literal pattern. This result is specific to the tested adapter/driver. Synthetic inputs only. AI-assisted testing and reporting. |
|
Tested 22ed0b5 (merged on current main) on RTX 3090 (Ampere), driver 616.56, Windows 11 23H2. This confirms @Doffi4's finding on a second NVIDIA architecture and driver branch. With the native reference being the RTX 3090, It fails the same way with and without AI-assisted test run. |
|
@Doffi4 @CharlyRien Thank you for isolating the native-reference difference and checking it on a second NVIDIA architecture. Updated in
On RX 5700 XT (Windows, driver 32.0.21045.5002), the updated test passes 175 portable cases with WARP and again with native AMD D3D12, plus all 15 WARP-only controls in each run. Khronos/synchronization validation: zero errors. The three affected CTests pass; the PR description now separates these results from the earlier full-suite run. Could you rerun the updated head with the native NVIDIA reference? I cannot verify that adapter locally. Hosted CI for this head is separate from the local results above. |
|
Tested head Results
Root CauseThis is the exact UNORM float tie-breaking divergence documented in
So under WARP (CTest), AI-assisted run. |
|
Reran 0d5c799 (merged on current main) with the native NVIDIA reference as asked: RTX 3090, driver 616.56, Windows 11 23H2.
Suggestion: use a clear value that isn't on a .5 boundary for the UNORM rows (e.g. AI-assisted test run. |
|
@SPIN0ZAi @CharlyRien Thanks for the updated native-reference runs. Addressed the UNORM midpoint in The 175 portable cases now use The original On RX 5700 XT (Windows, driver 32.0.21045.5002), all 175 portable cases pass against WARP and again against native AMD D3D12; the 15 out-of-row and eight midpoint controls pass in each run. Khronos/synchronization validation: zero errors. The three affected CTests pass. Could you rerun this head with the native NVIDIA reference? That confirmation remains pending; the local results above do not establish it. |
|
Reran the updated head
The executable logged the matching native GPU in each manual run. The three CTests were |
Short typed buffer UAV clears reject the entire command list when the cleared range contains no complete aligned 32-bit word. For example, clearing 1–4 bytes of an R8_UINT view at byte offset 1 succeeds on WARP and native D3D12, but replay returns
unsupported. This fixes that documented limitation while preserving the existing fast path.Claim: #2891 (comment)
Follow-up to merged #391 / D3D-25. Based directly on main
16282101; no unmerged dependencies.Changes
No predication expansion, texture-clear changes, descriptor redesign or translator rules are included. This is separate from D3D-326's predicated transfer/UAV-clear work. Ownerless replay callers without
copy_scratchstill reject short ranges safely.Validation
Windows, RX 5700 XT, driver 32.0.21045.5002, MSVC RelWithDebInfo. Khronos validation and synchronization validation enabled; synthetic inputs only.
Current head
57f5aec0(test/documentation adjustment):0.25f(R80x40, R160x4000) to avoid a conversion midpoint; comparisons remain byte-exact. Covers R8_UINT, R16_UINT, R8G8_UINT, R8_UNORM and R16_UNORM, Uint/Float clears, word phases, short lengths, resource-end views, clipped/overlapping X ranges and empty clipped rectangles.LEONIDA_HOST_ADAPTERselects a native GPU for the portable cases.0.5fwith exact0x80/0x8000expectations at aligned/unaligned starts, resource ends and rectangles.d3d12_short_uav_clear,d3d12_uav_clear,replay_uav_clear_offset). Rebuild andgit diff --checkpassed; zero Vulkan validation errors in the focused GPU runs.Original runtime head
22ed0b51(runtime code unchanged by the adjustment):ReplayResult::unsupported.Independent feedback and reference scope
Doffi4 and CharlyRien found that native NVIDIA D3D12 ignores Y for an out-of-row buffer rectangle where WARP and AMD leave the buffer untouched. The original 175 WARP comparisons passed on Radeon 780M and RTX 5060 Laptop; the failing native NVIDIA comparison was the reference disagreeing with the literal expectation.
The current test keeps portable native comparisons on row 0 and retains the original out-of-row cases as explicit WARP-only controls, plus isolated controls for the reported rectangle. Further independent runs by SPIN0ZAi and CharlyRien found native NVIDIA produces
0x7f/0x7ffffor the0.5fUNORM midpoint where WARP/AMD produce0x80/0x8000. Portable cases now use0.25f; eight separate WARP-only controls preserve the midpoint regression coverage without adding comparison tolerances. This does not change runtime behaviour or assert uniform native-driver semantics. Failure diagnostics now identify the backend and first differing byte. NVIDIA revalidation of the updated head is still pending. Hosted CI is separate from local results.Checklist