tests: restore the packed-vertex attribute count the mesh refactor dropped #3861
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3861"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-12-02T14:56:30Z.
Fixes #3856.
native_direct_meshfails on every pull request's Windows job. It is not a translator regression — the fixture is broken, and this restores the one line the refactor dropped.Root cause.
5545de92moved the sibling container cases ontotests/native_direct_container_check.mesh(), which writes the attribute count atio + 0x188. It left the packed-row case on the oldpack(body + code, ...)path and deleted thestruct.pack_into("<I", body, io + 0x188, 1)that path needed:bodyis a shared, zero-filledbytearray, so from then on the container declared zero output attributes while still packing three signature rows.Failure chain.
Instrumenting the refusal showed
target=32 channel=0 pixel=0 outputs=0 sig=3— the export is the first packed-vertex row in a mesh stage with no attribute row to map. The:469exception does not apply because the signature has generic rows (COLOR, TEXCOORD).No translator change is involved. Between the last passing tree and the failing one:
Linear ancestry:
e3876780PASS →5545de92FAIL (e3876780is its parent).Verification — Debian, clang-cl 19.1.1, Windows CPython under Wine,
compile_dxilbuilt at5770f14e(the failing tree), samedxc.exe:Both loop iterations now run, which is the point of the case: the assertion expects
TEXCOORDwith interpolation mode1for the integer row and2for the float row. Previously the first iteration aborted, so the second never executed — the behaviour this fixture exists to test was not being exercised at all.Not established. No MSVC or Windows host here, so the Windows job is the check for that side. I did not run the rest of the suite.
Alternative considered. The tidier change is to move this case onto
mesh()like its siblings (mesh(code, 0, outputs, [(6, 1, 0, 0, 0, 0)])). I kept the one-line restore because it is the smallest change that fixes the fixture and leaves the case's intent visible; say the word and I will switch it.Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-12-02T14:56:44Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
002fc75ℹ️ 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.
Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-12-02T15:00:35Z.
Adding the control and a repeat, since a single green run is weak evidence for a fixture fix.
Same host, same
compile_dxilbuilt at5770f14e(the failing tree), samedxc.exe:tests/native_direct_mesh_check.pynative compute +0x34: unmapped graphics exportmesh allocation, indexed outputs, group exchange and negative controls passedThe unfixed runs are the negative control: the only difference between pass and fail is the restored dword, so the fix is what moves it.
Two further invocations of the fixed file hit
OSError: [WinError 731]before the fixture ran — that is Wine failing toCreateProcesson this host (the same artefact I described in #3822), not a test result, and I did not count them either way.Nothing else in this file is affected: the added line sits in the packed-row block, and the sibling cases reach the attribute count through
mesh(), which already writes it.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T15:18:41Z.
Review: APPROVED
Reviewed
002fc75fagainst main. The fixture now declares the single attribute it writes, so the target-32 export reaches the packed-row interpolation assertions. Both integer and float assertions remain intact, and the translator is unchanged. The Windows CI run for this head passed, along with the two Linux checks.