startup: treat s_setprio as a scheduling hint in gfx2hlsl #1241
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1241
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1241/head"
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?
@triggered02 on GitHub · 2026-11-24 04:59 UTC · original
triggered02:startup/setprio-hint→main· +1 −1 · 1 files · 1 commits · merged 2026-11-24 05:13 UTCs_setprioonly raises or lowers a wave's scheduling priority; it cannot change a shader's result, so it belongs with the other instruction-shaped hints the translator already drops inone()(s_nop,s_inst_prefetch,s_clause,s_code_end, ...).Without it, two of the four pipelines the title requests during startup failed to translate:
and their draws were skipped. Measured on the same startup run (GTX 1660 SUPER, driver 32.0.16.1074, Windows 11 build 26200):
pipelines translated / missingTranslating the two pipelines restores the draws; it does not by itself make the intro appear (the run still stops later in the render path), and no new shortcut is introduced — the instruction is dropped exactly like its neighbours above.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-24 05:00 UTC · original · edited 2026-11-24 05:03 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
e7c8bfdℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@tedin7 on GitHub · 2026-11-24 05:03 UTC · original · reviewed
Reviewed commit
e7c8bfd2(Linux host; Windows startup runtime was not executed locally).Code & Edge-Case Audit
tools/startup/gfx2hlsl.py(Stage.one):'s_setprio'to the existing no-op hint tuple alongsides_nop,s_clause,s_inst_prefetch,s_waitcnt,s_code_end, etc., returningNonewithout affecting control flow or register/memory state.s_setpriois SOPP opcode0x0f(0xbf8fxxxx), whereimm16is a wave priority hint (0..3on RDNA2;disasm_rdna2.pydecodes anyimm16). Unliketools/pixel_aot.py(HINT_LIMITS["s_setprio"] = 3),gfx2hlsl.pydrops all listed hint instructions without validatingimm16bounds, which is consistent with its neighbouring hints inStage.one.AGENTS.md): compliant.Checks Run (Linux / Python)
git diff --check origin/main...HEAD: pass (0 issues)/root/.local/share/x2w-rev-venv/bin/python -B tests/docs_links_check.py: pass (16 Markdown files, 280 links)/root/.local/share/x2w-rev-venv/bin/python -B tests/bidi_controls_check.py: pass (1046 files)s_setpriocheck (disasm_rdna2on00008fbf/03008fbfandgfx2hlsl.Stage.oneons_setprio/s_setprio_e32): pass