native: a fixed slot 57 pass with no interpolants and fixed-point position is refused, so its layer keeps stale frames #3562

Closed
opened 2026-11-30 06:25:32 +00:00 by github-bot · 1 comment
Owner

@⁠lukaslw-lab on GitHub · 2026-11-30 06:23 UTC · original

Part of #870. Found in local runs of the application, native shaders only. Related: #3529, #3534, #1629, #3387.

Finding. One fixed slot 57 pipeline, a full-screen pass into one R8G8B8A8_UNORM target, gets no native pipeline.
It writes the 3840×2160 layer the final composite samples. Without it the layer is never redrawn, so earlier frames
persist on screen (stale render target). The published translation of the same pipeline draws it.

  • Native-only key 05dc00b8b79c1d4b; the published path reuses the plain key 7b25dcce8b9a69e8 (#3387).
  • Captured PSI1: SPI_PS_INPUT_ADDR = 0x8080 (bit 15 POS_FIXED_PT, and bit 7), NUM_INTERP = 0.
  • Refused at src/direct_compute_cache.cpp:729-730 (#3529 head a1b10c53): captured interpolation count disagrees with pixel interface, a zero count on a pair that is not exact. An exact pair would stop at :733-737, which
    admits zero count only with 0x0000 or a subset of 0x0f00.
fresh start, 190 s, native shaders only stale frames on screen 05dc00b8b79c1d4b
main 44a3ad5a + #3508 #3518 #3466 #3523 #3097 yes refused
the same + #3529 yes refused
the same, only this pipeline from its published translation (local experiment) no drawn
the same build with published translations (-Translate) no drawn (plain key)

Proposal. Admit a zero-interpolant fixed entry with POS_FIXED_PT (0x8000, here with bit 7) for a pair that is
not exact, with the fixed-point position input the lowering needs (the packed screen-position ABI of #1629), and
keep refusing other unadmitted addresses. A fixture with ADDR 0x8080, NUM_INTERP 0 and a non-exact pair would pin
it. It fits #3529's count and address rules; I noted it there.

RTX 3080 Ti, Windows 10 19045, Agility SDK 1.620, release build. Not reproducible on a source-built input: the
pipeline is the application's own, so the evidence is the keys, the captured registers and the runs above.

This issue was AI-assisted.

**@⁠lukaslw-lab** on GitHub · 2026-11-30 06:23 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3560) Part of #870. Found in local runs of the application, native shaders only. Related: #3529, #3534, #1629, #3387. **Finding.** One fixed slot 57 pipeline, a full-screen pass into one R8G8B8A8_UNORM target, gets no native pipeline. It writes the 3840×2160 layer the final composite samples. Without it the layer is never redrawn, so earlier frames persist on screen (stale render target). The published translation of the same pipeline draws it. - Native-only key `05dc00b8b79c1d4b`; the published path reuses the plain key `7b25dcce8b9a69e8` (#3387). - Captured `PSI1`: `SPI_PS_INPUT_ADDR = 0x8080` (bit 15 `POS_FIXED_PT`, and bit 7), `NUM_INTERP = 0`. - Refused at `src/direct_compute_cache.cpp:729-730` (#3529 head `a1b10c53`): `captured interpolation count disagrees with pixel interface`, a zero count on a pair that is not exact. An exact pair would stop at `:733-737`, which admits zero count only with `0x0000` or a subset of `0x0f00`. | fresh start, 190 s, native shaders only | stale frames on screen | `05dc00b8b79c1d4b` | |---|---|---| | main `44a3ad5a` + #3508 #3518 #3466 #3523 #3097 | yes | refused | | the same + #3529 | yes | refused | | the same, only this pipeline from its published translation (local experiment) | no | drawn | | the same build with published translations (`-Translate`) | no | drawn (plain key) | **Proposal.** Admit a zero-interpolant fixed entry with `POS_FIXED_PT` (`0x8000`, here with bit 7) for a pair that is not exact, with the fixed-point position input the lowering needs (the packed screen-position ABI of #1629), and keep refusing other unadmitted addresses. A fixture with `ADDR 0x8080, NUM_INTERP 0` and a non-exact pair would pin it. It fits #3529's count and address rules; I noted it there. RTX 3080 Ti, Windows 10 19045, Agility SDK 1.620, release build. Not reproducible on a source-built input: the pipeline is the application's own, so the evidence is the keys, the captured registers and the runs above. This issue was AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 06:25:33 +00:00
Author
Owner

@⁠lukaslw-lab on GitHub · 2026-12-01 01:09 UTC · original

Fixed by #3603 (merged 30 Nov): fixed slot 57 draws now accept the packed screen position, so this pass (ADDR 0x8080, NUM_INTERP 0) no longer has to be refused natively.

**@⁠lukaslw-lab** on GitHub · 2026-12-01 01:09 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3560#issuecomment-7297147491) Fixed by #3603 (merged 30 Nov): fixed slot 57 draws now accept the packed screen position, so this pass (ADDR 0x8080, NUM_INTERP 0) no longer has to be refused natively.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#3562
No description provided.