Repository navigation
Conversation
The console compiler spills lane masks like other SGPRs: v_writelane_b32
to a constant lane, v_readlane_b32 of that lane later. The lane pass took
the read-back value for an opaque mask, and the spill write read the
mask as data, which fails for a mask holding lanes not running there
("a lane mask holding lanes elsewhere read as data").
structure: a v_readlane_b32 of a constant lane that reads back a
v_writelane_b32 of a mask (through writes of other lanes and agreeing
joins), where the mask's value dominates the read, is that mask: each
lane's bit is the one it had when spilled. Wave64 masks need both dwords
read back from the same mask.
lower: such a read leaves its value to the mask's readers, and a spill
write of a mask is left out where that VGPR lane is read only by such
reads (no vector instruction or computed-lane read sees it). Neither
counts as reading the console's lanes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Runtime follow-up on Windows, Series S, hardware D3D12. I ran this PR's I matched shader IDs locally against the previous run's 57 compute shaders that were refused with
The 53 next refusals were descriptor read only as data (35), unknown structured-buffer stride (10), descriptor address or format read as data (4), scalar memory read as data (3), and an untracked lane-mask join (1). This compares translation outcomes for the same shader IDs. Dispatch recovery, frame-rate impact, and the visual result remain to be confirmed. The process was still running at the time of measurement. The full logs were exported locally. OpenAI Codex assisted with the test and analysis. |
Status of the cinematic test151 of 153 tracked compute shaders now translate. The 3D scene still does not appear, and both hardware retests ended in
Of the original 38 that were not seen, 36 translated on the second retest. The other two are still unobserved. All 115 translations from the first retest were also present in the second.
Both runs used the same local Series S setup on hardware D3D12 with fresh shader caches. The first test build ( These measurements cover the same locally matched shader identifiers. A successful translation does not establish that its draw or dispatch ran successfully, and the DRED stop is not proof of the cause of the hang. Raw logs stay local. OpenAI Codex assisted with the integration, tests and analysis. |
Series S hardware retestThe producer trace linked the mesh/pixel pipeline from the earlier DRED reports to two compute outputs whose PSOs were refused on this 32-lane adapter. With #439 integrated locally, D3D12 created both targeted PSOs and 77 of the 103 previously refused compute PSOs. Translation still refuses 26 of that set, including 25 with groups over 64 threads. The run also created PSOs for 150 of the 153 shaders previously blocked on descriptor reads. The mesh/pixel pipeline stayed enabled. At 7 min 06 s, the title hit an unhandled |
Proposed next testI’ll start with the compute producer whose output overlapped a mesh/pixel input at frame 1250, about 12 seconds before the first PSO creation was logged. On the local #439 integration, I’ll log when that pipeline is queued, built and first used, then correlate the producer’s dispatch and GPU completion with the mesh binding and any title exception. If the trace identifies a queue delay, I’ll test the urgent scheduling portion of #1013 in isolation. If it identifies a resource-state problem, I’ll test the relevant transition from #334 instead. The comparison will use the same Series S profile and cinematic sequence. I’ll report whether the target dispatch completes, whether its output is available at the mesh binding, and where the run ends. Raw logs stay local. Codex is assisting with the instrumentation and tests. |
Targeted scheduling resultWith fresh caches on the same Series S setup, an opt-in priority based on #1013 reduced the selected compute producer's queue wait.
Both runs reached the same title breakpoint ( Latest run with DRED and per-list timingThe targeted producer queued for 4 ms. All 28 traced writer submissions completed, with 986 overlapping reader bindings after a completed writer and zero early overlaps. D3D12 reported device removal about 105 seconds after the targeted pipeline was first queued, following a long wait at the menu. DRED returned an empty breadcrumb list for the 16-list batch. The D3D12 debug layer was unavailable on this machine. Per-list timing sampled a different compute shader five times, up to 658.1 ms for a Single-shader exclusion and re-enableThe same Series S executable, fresh application caches, DRED, and per-list timing were used throughout.
With the shader re-enabled, timing captured 13 samples at Compute exchange and mesh guard retestsAll three Series S runs used DRED, per-list timing, and fresh application caches with the slow compute shader enabled. Time starts when the traced producer queued. The timing samples are from slow lists.
The mesh test used the reference compute lowering. Its 124 traced writer submissions all completed. DRED identified a one-group The compute variants passed DXIL validation and host PSO creation. The mesh guard also passed validation and PSO creation for the implicated pair, 171 shader tests, 65 GPU tests, and shader Clippy with warnings denied. Codex assisted with the patch, tracing and tests. |
|
The next logical step would be to isolate the compute shader whose execution time reaches 658.1 ms to determine whether it contributes to the GPU device removal. |
|
Automated triage for the maintainers. Closing because this change is already in Draft stacked on #298 (in main) adding one test and a 47-line document under docs/ (rule 3). Main has its own test of the restored mask. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution. |
…has no copy number left When the 1023 copy numbers are used up, the pages a dispatch names read zeros, which for the structure builder (all stages or none) is a dropped stage: it handed the title structures it never wrote and the title crashed within seconds. The dispatch now reports whether every page it names has a copy (Ready::whole); a builder stage that gets false turns the builder off for the run (builder_off) and is dropped. The warning that the numbers ran out says how many were numbered by what named them first. Source: fxceless/victory-fork pull request Marvisak#1265 (issue Marvisak#1257). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Follow-up to #298. This draft carries that translator commit, followed by one D3D12 regression and a local before/after comparison.
The test spills the complement of a comparison mask to a VGPR lane, restores it, and consumes it in a compute select. Main rejects it with an untracked-mask error. With #298, the hardware adapter and WARP both return 17 for equal inputs and 29 otherwise.
The same local archive was scanned with the Windows SDK DXIL validator on ffe310e and 54f97db. Across 26,084 native programs, the mask-as-data refusal fell from 272 to 12. DXIL validates for seven additional compute and 27 additional pixel programs. Mesh and vertex totals are steady. The per-program comparison found zero lost validations.
Workspace tests passed (343 passed, 5 ignored), shader Clippy passed with warnings denied, and the asset-policy check passed. Gameplay dispatch counts and rendering impact remain unmeasured. Reproduction details and per-stage counts are in docs/compute-lane-mask-spill.md.
OpenAI Codex assisted with the regression, measurements and documentation.