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

Closed
opened 2026-11-30 06:23:39 +00:00 by lukaslw-lab · 1 comment
lukaslw-lab commented 2026-11-30 06:23:39 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-30T06:23:39Z.


Part of #870. Found in local runs of the application, native shaders only. Related: #3527, #3532, #1629, #3385.

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 (#3385).
  • 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 (#3527 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 + #3506 #3516 #3464 #3521 #3097 yes refused
the same + #3527 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 #3527'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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6690284244 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3560). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-30T06:23:39Z. --- Part of #870. Found in local runs of the application, native shaders only. Related: #3527, #3532, #1629, #3385. **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` (#3385). - 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` (#3527 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` + #3506 #3516 #3464 #3521 #3097 | yes | refused | | the same + #3527 | 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 #3527'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 commented 2026-12-01 01:09:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T01:09:08Z.


Fixed by #3601 (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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7297147491 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3560#issuecomment-7297147491). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-01T01:09:08Z. --- Fixed by #3601 (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.
Sign in to join this conversation.
No labels
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.

Reference
R0Y00/Xbox2Windows#3560
No description provided.