Repository navigation
Conversation
…e fixed per-cbuf reflection reads it e45694b's fixed per-cbuf reflection reads res['cbufs'] for each CBUF binding, so the test's three reflect() calls with only 'sbufs' raised KeyError: 'cbufs' (one of the eight tests reached it). Tests only; the shader build is unchanged.
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>
Owner
|
Landed on main as c823c3c, with your three calls kept and you credited as co-author. One addition from #2256: the first call gives slot 5 a fixed extent of 64 bytes and asserts that |
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
e45694b7made the fixed per-cbuf reflection readres['cbufs']for every CBUF binding.dm/tools/tests/test_dmsh_pool_arrays.pystill callsreflect()with only{'sbufs': []}, so one of its eight tests raisesKeyError: 'cbufs'on main. The three calls now pass{'sbufs': [], 'cbufs': []}. Tests only: the shader build is unchanged.Checked
python3 -I dm/tools/tests/test_dmsh_pool_arrays.py8 of 8 (1 error before); everytest_dmsh_*.pyunderdm/tools/testsanddm/gfx/testspasses (test_dmsh_pairs.pywithDM_GAMEset, as it needs);docs_symptoms.py --checkcurrent.Docs