With it, d3d12_xs reads list slot 48 as the console's IASetVertexBuffers, so the PC-shaped fixture list's
ClearRenderTargetView never runs and Close fails. The branch also changes runtime/src/pe_loader.cpp and carried
committed conflict markers in docs/fssm_crosscheck.md. Its docs rows go with it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review findings from shdann's Windows run of the new console queue/list
work:
- d3d12_debug_markers (and every GPU harness compiled against the PC
headers) drove lists through the console-shaped proxy, so PC slots past
26 — including the PIX markers at 56-58, which have no console
counterpart — reached unrelated console methods or were dropped.
create_device_proxy gains console_lists: false hands the real
(PC-shaped) list back from CreateCommandList. The GPU tests pass false;
the title path keeps the console default.
- queue_proxy asserted E_NOTIMPL for the queue's console tail, but those
slots deliberately answer S_OK now — frame pacing flows through them.
The test's contract is updated; the fence tail stays refused.
- ChildProxy::queue_layout was a plain unsigned char read and written
from many threads; it is atomic like the device-wide detection it
caches.
xs_proxy_mock_test and loader_test pass under Wine; the modified test
objects compile clean under clang-cl. The GPU harnesses need a real
adapter — covered by shdann's Windows run.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
From @Flyander's review of #2001: one_f16_step pixels were counted but not limited, so a regression that
moved every covered pixel by one half step would pass (only differ == 0 was checked). An adjacent half only
appears where the f32 interpolant is a few ulps from an f16 truncation boundary (1 pixel of 12,804 covered on
the RTX 3060), so at most one covered pixel in a thousand may be one step apart.
Checked both ways: the real image passes (1 pixel); a reference with all 12,804 covered pixels moved one half
step fails at the new bound.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From @SuarezPM's review of #2001: the description promised that a container swapped for the other stage's
fails, but nothing asserted it. The shader library must not find the PS hash as a vs program or the VS hash
as a ps program, and CreateGraphicsPipelineState with the pixel shader's container as the VS must fail and
return no PSO. Both hold on the RTX 3060; the draw and the 16,383 + 1 comparison are unchanged, 0 validation
messages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From @Vonsek's review of #2001:
- The one-f16-step tolerance compared |a - b| with a step taken from the larger value's exponent, so it
accepted two steps across an exponent boundary (0x3bfe vs 0x3c00) and refused one step in the subnormal
range (0 vs 0x0001). Both values must now be exact halves whose ordered half index differs by at most
one; the test checks those four controls itself before comparing.
- A missing or empty image.raw skipped the whole-image comparison silently. It is now required, with a
message to run first_light.py --run.
- The UV probes first_light.py writes (pixels where U and V differ) are checked as well as the centre.
RTX 3060: 4 UV probes match; 16,383 of 16,384 pixels bit-exact, 1 one f16 step apart; 0 validation messages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
d3d12_first_light (package-gated by LEONIDA_FIRST_LIGHT_DIR, exit 77 when
unset) draws the mesh and translated VS/PS that tools/first_light.py wrote
through the Xbox-ABI device proxy: CreateGraphicsPipelineState gets the
game's own containers and finds both stages by FSSM hash, the input layout
feeds POSITION/TEXCOORD, DEFAULT vertex/index buffers, one
DrawIndexedInstanced, CopyTextureRegion readback. It checks vk_harness's
oracle (coverage window, clear corner, centre UV) with the rows flipped
for the y-up viewport, and compares every pixel with vk_harness's
image.raw.
first_light.py now also writes vs.dxbc, ps.dxbc and index.json (the
translator entries keyed vs/ps) to the output folder.
RTX 3060, driver 616.64: 12,804/16,384 covered, centre
(0.49756, 0.49634, 0, 1), as vk_harness; 16,383 pixels bit-exact and one
one f16 step apart (the PS exports with v_cvt_pkrtz_f16_f32; vk_harness
with the mesh mirrored in y matches the D3D12 image bit for bit).
Clean under LEONIDA_VK_VALIDATION=1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>