Repository navigation
Conversation
The synthetic MSL declares fp_c5, but its reflection input supplied only storage buffers. Reflection now reads constant-buffer metadata, so this case raised KeyError before reaching the pool and image assertions. Supply slot 5 with a fixed 64-byte bound and assert the resulting kind, register and bound while retaining the existing pool assertions. All eight pool-array tests pass; unmodified ced3612 fails this case. No translator code, shader chain or runtime behavior changes. Front-ends: no action required. Co-authored-by: Adam Kratch <70729875+akratch@users.noreply.github.com>
seedds
added a commit
that referenced
this pull request
Nov 11, 2026
…45694b made reflect() read res['cbufs'] for each game uniform slot, which the translator's report always carries, and the suite's three calls still passed only sbufs, so test_pools_and_attributes raised KeyError: 'cbufs' on main (8 tests, 1 error). The calls now pass cbufs, and the first gives slot 5 a fixed extent of 64 bytes and checks that fp_c5 reflects as KIND_CBUF, reg 2, fixed 64, which no test covered. Tests only: no chain tool changes. 8 of 8 pass (PR #2248, PR #2256) Co-authored-by: Pedro Nascimento <91118+lunks@users.noreply.github.com> Co-authored-by: akratch <70729875+akratch@users.noreply.github.com>
2 tasks done
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
The pool-reflection fixture declares
fp_c5but supplies nocbufsmetadata. On current main this raisesKeyError: 'cbufs'before the existing pool/image assertions run. Supply a synthetic slot-5 constant buffer with a 64-byte fixed bound, and verify its reflected kind, register and bound alongside the existing assertions.Only the test input and assertions change. Translator code, shader chain and runtime behavior are unchanged.
Checked
ced3612134b9e16b20a866bde990a1092fee7360; unmodified pool-array suite runs 8 tests with this one error.dm/tools/tests: 1,441 tests pass, including 27 skips.dmsh_fetchimport atdm/gfx/tools/dmsh_entry.py:7(324 findings versus 323 baseline). The changed test has no new finding; the translator import and baseline are untouched. This is not a claim that global lint or CI is green.Docs
This restores the existing fixture to the reflection resource contract; no player-facing behavior or reference entry changes. No game files, keys or extracted data are included. Front ends require no action.