Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bb9383321c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
c28366b to
a8b75ad
Compare
…riptor (R0Y00#1723) Fold only in shaders without branches, sign-extend s_movk_i32, and document the accepted form.
a8b75ad to
eb931ba
Compare
|
Closing this PR for now to keep the Windows test queue short. Nothing is wrong with it and the branch stays as it is. We will reopen it once the queue is clear, re-run the Win2025 WARP checks at its head, and post the result here. AI-assisted; commands listed were executed locally. |
|
@tedin7, a question about this PR and #2086, which you paused today. In a local first-refusal census of captured start-up requests at main Two offers, whichever helps more:
Note: If neither is useful, ignore this. AI-assisted. |
|
@tedin7, no reply here yet to my question from 18:40Z, and you said you plan to reopen this, so tell me if you'd rather I stop: I'm picking this up the same way as #2086 (now #2512): a new PR with your commits rebased on current main, keeping your authorship, linked here. Your fixes for the three review findings (branch-free shaders only, AI-assisted. |
…riptor (continues #2066, Part of #1723) (#2517) * startup: s_load with a constant register offset reaches the heap descriptor (#1723) Fold only in shaders without branches, sign-extend s_movk_i32, and document the accepted form. * startup: drop the s_movk_i32 sign extension that main already applies 8e0ef14 sign-extends the SOPK i32 immediates through sopk_imm before this branch, so a 0x8000..0xffff value can no longer reach it. The startup_gfx2hlsl_sload_const_offset checks for the sign-extended value and the refused negative offset still pass on main's path. AI-assisted. * startup: refuse tagged constants as SMEM offsets and cover the edges const_soffset now takes only an untagged ('const', value) symbol, so the ('const', 0, 'unassigned') default-sampler placeholder is not folded to offset 0. New checks: s_mov_b32 0x8000 stays 0x8000, a constant plus an offset: modifier above 0xfffff is refused, the placeholder is refused, and a sampler-heap register offset is not folded. List startup_gfx2hlsl_sload_const_offset_check.py in AGENTS.md and the Linux CI Python list next to startup_gfx2hlsl_smem_offset_check.py, and drop the OS from the docs' evidence line. AI-assisted. --------- Co-authored-by: tedin7 <tommasoderosa94@gmail.com>
Part of #1723
What this unblocks:
s_loadfrom the resource heap (and any descriptor table) now works when the byte offset sits in a register that an earlier move filled with a known constant, so those descriptor loads stop being refused as "register offset" (first slice of the bindless refusals).Change:
tools/startup/gfx2hlsl.py:s_load*reads an offset register with a known constant value as that literal byte offset, plus anyoffset:modifier. Unknown registers,m0and the sampler heap keep their old handling.tests/startup_gfx2hlsl_sload_const_offset_check.py, registered inCMakeLists.txtasstartup_gfx2hlsl_sload_const_offset.Not in this slice: offsets that are truly run-time values (a heap table indexed in the shader). The manifest still refuses a
resheapresource.Verification:
python3 -B tests/startup_gfx2hlsl_sload_const_offset_check.py: 0 failed (same file against the old translator: 3 failed).python3 -B tests/startup_gfx2hlsl_smem_offset_check.py: 0 failed.python3 -B tests/startup_gfx2hlsl_readfirstlane_uniform_check.py: 0 failed.python3 -B tests/startup_translator_check.py: 0 failed.AI-assisted; commands listed were executed locally.