Repository navigation
Tests: wait for the bundle blend draws in d3d12_draw (fence 21, not 4) - #1793
Conversation
ItsNotRexed#1583's strip-cut passes leave the fence at 20, and ItsNotRexed#1660's bundle blend block then signalled 4. SetEventOnCompletion(4) returns at once when the fence has already passed 4, on native D3D12 too, so the check read the readback buffer before the draws had run. It saw the last strip-cut pass's red quad: "bundle blend pixel (0, 0): got 255,0,0,255, expected red 64", on every GPU. Signal 21 instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent check on AMD Radeon RX 9070 (RDNA4), Windows 11, MSVC Release. I found the same thing before seeing this PR. Before the fix, the strips read Side note: the layer returns S_OK for the lower |
|
NVIDIA confirmation plus a bisect:
I bisected it before seeing this PR, merging #1660's tip
So it starts exactly where #1583's strip passes, which end at fence 20, meet #1660's block signalling 4. That matches your diagnosis; neither PR fails alone. AI-assisted. |
Flyander
left a comment
There was a problem hiding this comment.
Re-reviewed the fence change. The wait now targets value 21, after the strip passes signal through 20, so the test cannot continue early because a lower fence value was already complete. No automated checks are visible for this head.
|
@WHOISJARDAS, tested on an RTX 4060 Ti (621.01), Windows 11 26200,
Why. After Suggestion. Bump to 31 when you rebase; the bundle blend signal is the last one in the test. Since AI-assisted (Claude Code). |
|
Tested 01a6176 on NVIDIA GeForce RTX 5080 (616.92) and AMD Radeon RDNA2 iGPU (26.10.1), Windows 11: pass. Red on main (89b047c), On this PR (RelWithDebInfo, Ninja,
AI-assisted. |
|
Tested 01a6176 merged onto main 003e781 on AMD Radeon RX 6600 (RDNA2, Navi 23), AMD proprietary 26.11.2 (Vulkan 1.4.315), Windows 11 Pro 10.0.26300: fails on current main. 0/10 runs pass, each with The cause is a main change after this branch: main now signals #1807 uses 31 and passes 10/10 here with no VUIDs. Bumping this one to 31 (or above any later value) would do the same. The two PRs fix the same thing (TEST-266), so one of them can close. AI-assisted (Claude Code): it built both fixes, ran the test and wrote this comment. |
…ulkan_replay.h) The test's global `constexpr UINT extent = 64` is hidden by a local `extent` in runtime/src/vulkan_replay.h, so every MSVC build of the runtime prints `warning C4459: declaration of 'extent' hides global declaration`. It came in with #907, whose earlier fix renamed the global `size` to `extent` for the same reason. The global is now `target_extent`, a name nothing under runtime/ uses; the test is otherwise unchanged. Tested on Windows 11 Pro 25H2, MSVC 14.51 + Ninja (scripts/build_runtime.ps1), RTX 5070 Ti / 621.24: the build has no C4459 (main's 49x C4456 in vulkan_replay.h remain; #1743 handles them). d3d12_translated_draw_test passes with validation off and on: three draws, 4064/4096 exact, 32 edge pixels, 0 VUIDs. Full ctest with validation: 106/107; the one failure is d3d12_draw's bundle-blend check, which fails on main too (#1793). No game files. AI-assisted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested 01a6176 on Intel(R) UHD Graphics (Tiger Lake (Xe-LP) iGPU 0x9a78, subgroup 8..32, no mesh), driver 32.0.101.7088, Windows 11, MSVC 14.44: pass
AI-assisted (GLM, operated by the account owner). |
Claimed in the coordination issue as: #1745 (comment) (new TEST item)
What and why
d3d12_drawfails onmain89b047c on every GPU:bundle blend pixel (0, 0): got 255,0,0,255, expected red 64. It was reported on #1660 for an RTX 4070 SUPER and an Intel UHD 770, and an RX 9070 XT fails the same way here.The cause is a fence value, not the blend:
runtime/test/d3d12_draw_test.cpp:481).SetEventOnCompletion(4)returns at once when the fence has already passed 4. Native D3D12 does the same, and the runtime also logsfence signal 4 is not above 20; Vulkan timelines cannot go back.So the check reads the readback buffer before the draws have run. Pixel (0, 0) is still the red top-left quad from the last strip-cut pass.
This PR makes the block signal 21 instead. Only the test changes.
Tested
AMD Radeon RX 9070 XT (RDNA4), AMD 26.11.2 (LLPC), Windows 11, MSVC 14.51 (VS 2026), Vulkan SDK 1.4.363.0. The runtime was built with
scripts/build_runtime.ps1frommain89b047c plus this commit.d3d12_draw_test.exe: passes on 3 of 3 runs, and the runtime's "not above 20" line is gone. Without this commit it failed on every run with the message above.runtime/shims/d3d12_com.cppreverted, it fails at strip 1, the explicit zero factor:bundle blend pixel (16, 0): got 64,0,0,255, expected red 0. Before this fix it couldn't catch that, because it never read the draws' output.ctest: 0 failed out of 101. 4 are skipped (bink_decode,fsr_dispatch,bvh_builder,bink_audio) andgameinputis disabled, the same as without this commit. Before,d3d12_drawwas the only failure.Checklist
AI-assisted (Claude Code): it found the fence clash, wrote the change and ran everything above on the RX 9070 XT.
🤖 Generated with Claude Code