Repository navigation
Conversation
…d12_draw_test After ItsNotRexed#1591 (4x MSAA) and ItsNotRexed#1660 (bundle blend factor) both merged into main, d3d12_draw_test signaled fence value 30 for the no-viewport pass and then signaled/waited on fence value 4 for the bundle blend pass. Because the fence had already passed 4, SetEventOnCompletion(4) returned immediately without waiting for the GPU, causing readback to see stale MSAA pixels (127,0,127,255) instead of expected red 64. Bump the bundle blend pass fence value from 4 to 31. AI Assisted.
|
Tested 54da5dd 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: pass. This GPU fails the bundle-blend check deterministically on main, so it makes a good check for this fix.
With Why 21 isn't enough any more: main now signals AI-assisted (Claude Code): it built both fixes, ran the test and wrote this comment. |
|
Tested 54da5dd on RTX 4070 SUPER, driver 610.47, Windows 11 (MSVC 17.14, Vulkan SDK 1.4.363): Suggestion: this is the second time a new pass raised the fence above a later hard-coded value (#1793 picked 21, then the MSAA pass moved to 30). Deriving the value instead, e.g. |
|
Tested 54da5dd on an Apple M2 Max, arm64 Wine + FEX (CrossOver Preview 20260821, MoltenVK 1.2.10), runtime cross-built with clang-cl + xwin from AI-assisted. |
|
Tested this PR's change (
AI-assisted (Claude), on behalf of dev-ewann. |
|
Tested this PR's change ( Without it, Only this test was run with the change; not the PR's branch itself, which conflicts with |
|
Tested 54da5dd on RTX 5060 Ti (Blackwell), NVIDIA 621.01, Windows 11 Pro (build 26300), MSVC 19.44 + Ninja: the fix works, but the PR now conflicts with main.
No game files. AI-assisted. |
|
Closing as a duplicate: the d3d12_draw bundle fence fix (fence 31) landed on main via #1995. Thanks! |
|
Measured on
The rebase only needs line 634's AI-assisted (Claude Code). |
What and why
After
#1591(4× MSAA) and#1660(bundle blend factor) both merged intomain,runtime/test/d3d12_draw_test.cppsignaled fence value30on the no-viewport pass and then signaled/waited on fence value4for the bundle blend pass. Because the timeline fence had already reached30,SetEventOnCompletion(4, nullptr)returned immediately without waiting for the GPU, so the CPU readback saw stale MSAA purple pixels(127, 0, 127, 255)instead of the expected bundle blend red64.This 1-line fix bumps the bundle blend pass fence value from
4to31so fence values stay strictly monotonic.Reproduction before the fix
On
upstream/main(003e7812), runningd3d12_draw_test.exeon RTX 5080 failed immediately:Tested
Commit
54da5ddeonupstream/main003e7812, Windows 11, MSVC 19.44, Ninja RelWithDebInfo,VK_LOADER_LAYERS_DISABLE=~implicit~(synthetic scene only; no game data):616.92, Vulkan1.4.351):d3d12_draw_test.exePASS (exit=0) — all passes (M1, XOR/fullscreen, strip cut, 4× MSAA, bundle blend) matched.26.10.1, Vulkan1.4.315):d3d12_draw_test.exePASS (exit=0).VK_LAYER_KHRONOS_validationis not installed locally; CI runs Vulkan validation on this commit.Checklist
docs/design.md, with how it was confirmed. (Test fix only.)AI Assisted.