Repository navigation
startup: explain formatted MUBUF descriptor refusals - #1965
Conversation
Ran the control and broke the refusal three waysWindows 11 build 26300.9974, device-free: out/pe-env/Scripts/python.exe -B tests/startup_buffer_address_check.py controls
startup buffer address controls passed exit 0
out/pe-env/Scripts/python.exe -B tests/startup_translator_check.py # exit 0
The third is the one I did not expect to be covered: the triage classifier is a separate file ( The claim I checked and could not find a case forThe description says "No format is inferred from the number of output registers." That is the right rule, and the danger is The controls I can see exercise # An _x request into four registers must not be read as _xyzw.
refused(shader(opcode_x, dest="v[4:7]"), "requires descriptor FORMAT and DST_SEL")What is good here
What this does not establishNothing about a draw: the refusals are text-level, and the "future lowering needs these fields" sentence is a plan, not a VerdictReviewed. Three behaviours pinned, including the triage classifier staying in sync; one case I would add for the no-inference Notes
|
#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
|
Correction: the case I suggested here cannot be constructed, so nothing is missingIn my earlier review I asked for a case pairing an formats = (('x', 'v6'), ('xy', 'v[6:7]'), ('xyz', 'v[6:8]'), ('xyzw', 'v[6:9]'))
for op, (suffix, dest) in enumerate(formats):
load = encode_mubuf(op, vdata=6, srsrc=32)
assert G.decode(load) == [(0, 8, mnemonic, f'{mnemonic} {dest}, off, s[32:35], 0')]The opcode selects both the element count and the destination range, so So the suggestion in my previous comment was a guard against a shortcut that cannot currently arise — please ignore it. The four Notes
|
Refs #1809. Give all four non-D16 formatted MUBUF load widths a refusal that identifies the required descriptor
FORMATandDST_SELfields. Preserve the existing refusal group in startup triage. The documented request-to-binding trace locates the descriptor words and explains what a future lowering needs. No format is inferred from the number of output registers.python3 -B tests/startup_buffer_address_check.py controlsfails on the original translator at the first encoded formatted request and passes with the change. The encoded requests use one synthetic descriptor table and the same address for the formatted refusals, raw MUBUF control and instruction-formatted MTBUF control.python3 -B tests/startup_translator_check.py, the documentation check andgit diff --checkpassed. The agent also ran all 70 Linux workflow Python scripts successfully, with 24 individual optional skips. Windows CTest and GPU execution remain unverified.Source-built inputs only. AI-assisted using Codex.