shader: derive fixed slot 57 interfaces from PSI1 entries #3532
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3532"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-30T01:53:45Z.
Problem
A fixed slot 57 pixel entry (
PSI1+SPI_PS_INPUT_ADDR+SPI_PS_IN_CONTROL) can arrive without a reviewed.cdxilsidecar.prepare_direct_graphicstreated any PSI1 entry without reflected stage interfaces as unsupported and threwfixed graphics entry requires matching stage interfaces, so a valid fixed VS/PS pair never reached the raw frontend.Change
2or0x8002, with 1 to 7 interpolants, and build thepsin1record the reflected path would hand to the raw frontend.native_fixed_graphics_psi1, a source-built fixture covering center and packed position, cache reuse, bad address/control masks, over-counted interpolation, and an unallocated packed-position VGPR.Refs #3385 (the no-sidecar branch of the PSI1 refusal; #3410 covered the
.ps57infallback).Tests
Windows x64, Release /O2, MSVC 19.44.35228.0, Windows SDK 10.0.26100.0, DXC 10.0.26100.0.
Results:
native_fixed_graphics_psi1: 1/1 passed (0.64 s).native_graphics_interface_libraryandnative_direct_container: 2/2 passed (1.05 s and 29.04 s).native_fixed_graphics_psi1invokescompile_dxilonly and has no adapter parameter; it does not create a D3D12 device.AI-assisted.
CI on
a7374bd0(run 46337559646): Windows pass (3m08s), Linux Python checks pass (3m04s), gfx1013 fixture assembly pass (2m50s); Release /O2 skipping by PR configuration.Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-30T07:21:04Z.
Review: APPROVED
Reviewed
a7374bd0by reading the diff; not built or run.Verdict: approve. The no-sidecar branch admits only the two address forms the reflected path already accepts (2, 0x8002) and 1–7 interpolants. The raw frontend still checks every VGPR use, and the post-link check refuses TEXCOORD rows beyond the captured count. No MUST.
tests/native_fixed_graphics_psi1_check.py:82):"SV_Position" in dump or "loadInput" in dumpalso passes for a PS that reads only TEXCOORD, so it does not prove that 0x8002 reached the packed XY input. AssertSV_Positionalone.prepare_direct_graphics, andgit merge-treeof the two heads conflicts insrc/direct_compute_cache.cpp. Whichever merges second needs a rebase. The two branches are disjoint (!reflectedhere, the reflected zero-count case there), so the resolution should be mechanical.r.kind == 28(src/direct_compute_cache.cpp:793): a named constant or a short comment (barycentrics) would help. The reflected loop below also requiresinterpolation == 2for it, but the new loop skips any kind-28 input.entry/pixel_entryhandoff matches the reflectedpsin1record; the channel reconciliation now runs only with companions (:799).Tests:
native_fixed_graphics_psi1reaches the new branch with positive cases (centre, cache hit, packed) and negative controls for each new refusal: address, control, over-count, and the unallocated packed VGPR (the raw frontend's own check). It is not in theprpreset filter and needs DXC, so CI did not run it. The author's local Release run is the only evidence so far.