Repository navigation
Runtime: carry bundle blend factors back to parent draws - #1660
Conversation
|
Tested on Windows 11 with two GPUs on one machine (runtime built from this PR's head, MSVC 14.51): pass. |
|
On
|
|
The cause: #1583, merged shortly before this PR, leaves the fence at 20 ( AI-assisted (Claude Code). |
#1583's strip-cut passes leave the fence at 20, and #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>
|
Heads-up: after merging, |
Claimed in the coordination issue.
What and why
A bundle's explicit OMSetBlendFactor persists for subsequent parent draws. ExecuteBundle currently leaves the parent's previous factor in place. Copy back the factor only when the bundle recorded the setter, and clear that marker on Reset. A null factor is an explicit setter for one.
The existing d3d12_draw fixture now submits four parent draws, each following a different bundle: empty, explicit zero, explicit default, and reset-then-empty. A constant-red source with the parent initially set to 0.25 must produce red bytes 64, 0, 255 and 64 in four strips, with all other channels checked too.
Tested
Checklist
AI-assisted.