startup: indirect draws refused with "masked vertex arm overwrites its saved EXEC" (largest indirect refusal by calls) #3900

Open
opened 2026-12-02 23:23:44 +00:00 by github-bot · 1 comment
Owner

@⁠SimSalabimse on GitHub · 2026-12-02 23:22 UTC · original

Summary

For indirect draws, the largest single refusal is "masked vertex arm overwrites its saved EXEC". The scan that decides whether a masked vertex arm is safe refuses any arm instruction whose scalar destination overlaps the register where the arm's entry EXEC was saved.

What was measured

One native-path run of about 410 s on the Windows test PC (Simsalabim), from the indirect-draw refusal census:

  • The census stored about 52k refused indirect calls. About 46k of them (about 87%) are this one reason, spread over 55 pipelines. That is the largest wall by calls.
  • Another roughly 180k indirect calls over about 290 pipelines overflowed the per-pipeline census table, so the stored census understates the count.
  • The next reasons are small by comparison (for example a wave-quad-mode raw graphics branch, about 5k calls over 6 pipelines).
  • The same reason also appears among the direct-draw refusals ("masked vertex arm raw buffer store", about 16k calls).

What is not known

Whether the overlapping register pair is already dead after the restore (a false positive) or a real overwrite of the mask the epilogue restores. A first step would be to put the opcode and registers into the refusal text and run the offline census on the 55 pipelines; nothing has been proven yet.

  • #3479 (refusal diagnostics)
  • No draft PR for this yet.

AI-Assisted

**@⁠SimSalabimse** on GitHub · 2026-12-02 23:22 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3898) ## Summary For indirect draws, the largest single refusal is "masked vertex arm overwrites its saved EXEC". The scan that decides whether a masked vertex arm is safe refuses any arm instruction whose scalar destination overlaps the register where the arm's entry EXEC was saved. ## What was measured One native-path run of about 410 s on the Windows test PC (Simsalabim), from the indirect-draw refusal census: - The census stored about 52k refused indirect calls. About 46k of them (about 87%) are this one reason, spread over 55 pipelines. That is the largest wall by calls. - Another roughly 180k indirect calls over about 290 pipelines overflowed the per-pipeline census table, so the stored census understates the count. - The next reasons are small by comparison (for example a wave-quad-mode raw graphics branch, about 5k calls over 6 pipelines). - The same reason also appears among the direct-draw refusals ("masked vertex arm raw buffer store", about 16k calls). ## What is not known Whether the overlapping register pair is already dead after the restore (a false positive) or a real overwrite of the mask the epilogue restores. A first step would be to put the opcode and registers into the refusal text and run the offline census on the 55 pipelines; nothing has been proven yet. ## Related - #3479 (refusal diagnostics) - No draft PR for this yet. AI-Assisted
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 23:23:44 +00:00
Author
Owner

@⁠triggered02 on GitHub · 2026-12-03 11:00 UTC · original

Claiming the first step this issue asks for: put the opcode and the overlapping registers into the refusal text, so the offline census can say whether the pair is dead after the restore (a false positive) or a real overwrite of the saved mask.

Scope I will take: the refusal message and the scan that produces it, plus the fixture coverage for both outcomes. I am not going to relax the safety check — that decision needs the census on the 55 pipelines to show the overlap is dead, and I cannot run that here without the title's data.

What I can verify on this host: the translator is a CPU-side tool, so I can build compile_dxil/the shim with clang-cl and run the startup_gfx2hlsl_* / native_*_controls fixtures under Wine, plus the pure-Python checks. I will show the new message text on a synthetic program that hits the scan.

What I cannot do here: the 55-pipeline census and any frame-time claim. If the diagnostic shows nothing conclusive, the issue will say so rather than turn into a speculative relaxation of the check.

Overlap: #3900 has no comments, no assignee, and no draft PR (the issue says so and a search agrees — #3423 is unrelated and already merged).

AI-assisted.

**@⁠triggered02** on GitHub · 2026-12-03 11:00 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3898#issuecomment-7376088067) Claiming the first step this issue asks for: **put the opcode and the overlapping registers into the refusal text**, so the offline census can say whether the pair is dead after the restore (a false positive) or a real overwrite of the saved mask. **Scope I will take:** the refusal message and the scan that produces it, plus the fixture coverage for both outcomes. I am not going to relax the safety check — that decision needs the census on the 55 pipelines to show the overlap is dead, and I cannot run that here without the title's data. **What I can verify on this host:** the translator is a CPU-side tool, so I can build `compile_dxil`/the shim with clang-cl and run the `startup_gfx2hlsl_*` / `native_*_controls` fixtures under Wine, plus the pure-Python checks. I will show the new message text on a synthetic program that hits the scan. **What I cannot do here:** the 55-pipeline census and any frame-time claim. If the diagnostic shows nothing conclusive, the issue will say so rather than turn into a speculative relaxation of the check. **Overlap:** #3900 has no comments, no assignee, and no draft PR (the issue says so and a search agrees — #3423 is unrelated and already merged). AI-assisted.
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#3900
No description provided.