Repository navigation
Conversation
… is known The untyped-format MUBUF loads take their element format from the resource descriptor, which the translator does not track. Refuse each width with that reason instead of the generic unknown-op message. Part of R0Y00#1809, R0Y00#870.
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. |
#1965 and this PR are green alone and red together — textually clean merge, broken testBoth change the refusal for the same four mnemonics (
and this PR's dispatch wins, because out/pe-env/Scripts/python.exe -B tests/startup_buffer_address_check.py controls
AssertionError: buffer_load_format_x needs the descriptor DATA_FORMAT, which is not tracked
exit 1This PR's check still passes ( The triage census breaks silently too#1965 also narrows a classifier in re.compile(r"buffer_load_format_(?:x|xy|xyz|xyzw) requires descriptor FORMAT and DST_SEL\Z")Checked against both texts: So after this PR's text takes effect, those four refusals fall out of the What I would do
I am not asking for either PR to be dropped; the point is that the two are one decision, and it is easier to take it now than after Notes
|
Update after #1965 merged: this PR now breaks a test on
|
|
Thanks for the source-built controls. #1965 is already on main and covers the same four encoded MUBUF widths, as well as the adjacent raw MUBUF and instruction-formatted MTBUF paths. It preserves the refusal group and names both FORMAT and DST_SEL. As the combined run in this thread shows, the two changes would disagree on the exact refusal and break the fixture. Closing the duplicate implementation. #1809 stays open for real bound-descriptor format and swizzle support. |
Part of #1809
Part of #870
What this unblocks:
buffer_load_format_{x,xy,xyz,xyzw}is now refused by name with its real reason (descriptorDATA_FORMATnot tracked), so the census group is classified and no wrong typed load can be emitted.Verification:
python3 -B tests/startup_gfx2hlsl_buffer_format_check.py-> PASS (9 checks fail against the previousgfx2hlsl.py, all pass with this change)python3 -B tests/startup_gfx2hlsl_tbuffer_16f_check.py-> PASS (typedtbuffer_load_format_*unchanged)git diff --check-> cleanctest --preset dev --no-tests=error -R '^startup_gfx2hlsl_buffer_format$' -V-> not run yet, to be run on Win2025 before mergeScope: this does not lower the loads.
buffer_load_format_*has no format field; the format lives in the resource descriptor, andStage.descriptor()tracks only where descriptor words came from. Guessing a format from the destination width would give silently wrong data. Lowering needs pipeline state that supplies the descriptor words, as described in the issue. The test starts from synthetic encoded MUBUF instructions and pins each width's refusal plus the unchangedbuffer_load_dword.docs/experiments.mdrecords the finding.AI-assisted; commands listed were executed locally.