Repository navigation
Tests: wait for the bundle blend draws in d3d12_draw (fence 31, not 21) - #1995
Conversation
|
Tested I hit exactly this bug earlier today while testing #1799: on upstream/main ( With this branch: the direct Note for the maintainers: #1807 and #1995 both fix the same broken wait — per the coordination rules the first to land wins and the other rebases or closes. AI-assisted (ZCode agent): builds and runs executed by a coding agent on this machine. |
Flyander
left a comment
There was a problem hiding this comment.
This diff is the same fence fix as #1807: both change the bundle-pass signal/wait at line 634 to value 31, and #1807 already contains multiple independent GPU runs. #1995 is based on current main and has a fresh validation report, while #1807 is the earlier claim but needs a rebase. The coordination thread says to keep one implementation and rebase or close the other. Please coordinate with @Vonsek/maintainers so only one PR lands; if #1995 is chosen as the replacement, it would be useful to carry over the broader #1807 validation reports.
…the exact D3D-54 restack
…ending bundle fence fix Preserve the upstream readbacks, run the D3D-54 pixel filter on its own graphics pipeline and read its output separately. The upstream parent includes the existing ProjectLeonida#1995 fence fix by carlcdx.
|
Confirmed on Windows 11 with AMD Radeon RX 9070 (RDNA4, driver 26.10.1, MSVC 14.44):
No game files used. This review is AI-assisted. |
|
Confirmed on RTX 5090 (Blackwell, driver 621.24), Windows 11 Pro 26300, MSVC 14.44 (VS 2022), Vulkan SDK 1.4.363.0 with validation layers, VS generator, Release, AI-assisted (Claude Code): it ran the tests and wrote this comment.
So on an RTX 5090 this isn't a flaky race but a reliable failure on |
|
Tested on Windows 11, RTX 4060 Ti (Ada), NVIDIA 621.24: AI-assisted (Claude Code). |
|
Tested ed25f93 on AMD Radeon RX 7600 (RDNA3), AMD 26.11.2 (LLPC), Windows 11, MSVC 19.44, Vulkan SDK 1.4.363.0: d3d12_draw passes.
AI-assisted (Claude Code, reviewed with Codex). No game files. |
|
Independent RTX 5070 validation (AI-assisted). Tested the exact two-line patch from PR head ed25f93 applied locally to baseline 4eb6155 (not a checkout of the PR head). The resulting d3d12_draw_test.cpp diff matches this PR. Environment: Windows 11 Pro 10.0.26200, NVIDIA GeForce RTX 5070, driver 32.0.16.1656, MSVC 19.50.35721.0, Windows SDK 10.0.26100.0, Vulkan SDK 1.4.363.0; RelWithDebInfo. Before: d3d12_draw failed in the baseline suite, passed once in isolation, then failed again on the first repeat. The bundle blend pixel was 127,0,127,255 instead of red 64, with the fence-21-after-30 warning. After:
Game-dependent tests were left disabled via unset LEONIDA_GAME_DIR; no game files were used. SDL3 and llvm-mc-dependent coverage was unavailable. This validates the fence fix on this GPU, but does not claim a fully clean runtime suite. |
|
Tested on Windows 11 with two GPUs on one machine (runtime built from this PR's head, MSVC 14.51): this fixes |
Claimed in the coordination issue as: #1902 (comment)
Fixes #1966
What and why
Follow-up to #1793 (
01a61764). Inruntime/test/d3d12_draw_test.cpp, line 580 already signals and waits on timeline fence value30before the bundle blend pass at line 634 signals and waits on21. Because21 <= 30, the Vulkan timeline semaphore ignores the signal (fence signal 21 is not above 30; Vulkan timelines cannot go back) andSetEventOnCompletion(21, nullptr)returns immediately before the GPU finishes the bundle blend draws, causingd3d12_drawto read stale pixels (128,0,128,255) instead of the expected red strip (64).Bumping the fence value at line 634 from
21to31makes the test wait for the bundle blend draws to complete.Tested
Built
d3d12_draw_test(RelWithDebInfo, MSVC 19.44, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0) on Windows 11 (26300) withVK_LOADER_LAYERS_DISABLE=~implicit~and ranctest --test-dir runtime/build -C RelWithDebInfo -R "^d3d12_draw$" --output-on-failure -V:26.10.44LLPC,driverVersion 2.0.395, Vulkan1.4.349): failed before (bundle blend pixel (0, 0): got 128,0,128,255, expected red 64), passed after (0.19 sec, no timeline fence warning).24.30.18SC,driverVersion 2.0.331, Vulkan1.3.302): failed before with the same symptom, passed after (0.16 sec, no timeline fence warning).AI-assisted.
Checklist
docs/design.md, with how it was confirmed. (N/A — runtime test fix only)