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

Open
opened 2026-12-02 23:22:17 +00:00 by SimSalabimse · 1 comment
SimSalabimse commented 2026-12-02 23:22:17 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-12-02T23:22:17Z.


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.

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

AI-Assisted

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6756679582 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3898). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-12-02T23:22:17Z. --- ## 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 - #3477 (refusal diagnostics) - No draft PR for this yet. AI-Assisted
triggered02 commented 2026-12-03 11:00:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-12-03T11:00:44Z.


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: #3898 has no comments, no assignee, and no draft PR (the issue says so and a search agrees — #3421 is unrelated and already merged).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7376088067 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3898#issuecomment-7376088067). Originally posted by [triggered02](https://github.com/triggered02) on 2026-12-03T11:00:44Z. --- 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:** #3898 has no comments, no assignee, and no draft PR (the issue says so and a search agrees — #3421 is unrelated and already merged). AI-assisted.
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#3898
No description provided.