mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 20:09:57 -04:00
Stop serving carried translations whose texture pool array has the earlier translator's length.
Installs updated from 0.10.0 or 0.10.1 hold translations of the 0.9.2 translator, which declares the texture pool with 32768 entries and clamps every handle to slot 32767. The carry lookups (gfx_shader.c carry_load, carry_find_iid) served such a translation for the whole session, so every texture the game numbers from 32768 up (Ocarina's pool has 33068) was drawn with whatever slot 32767 held: the see-through ground of issues #569 and #824 stayed on those installs after the update. carry_usable now refuses a previous translator's translation that has a texture pool array (reflection pool 1) of 32768 entries; the lookup goes on to the next previous identity and then to a translation under the current translator, so the boot prewarm translates the shaders it names on the boot screen and the rest are translated at first use. The first refusal is logged, and the saves and the exit log how many there were. get_one now checks its failed keys before the previous translators' disk entries, so a shader whose translation failed does not read a refused entry from the disk at every call. Not reproduced before the change. tests/carry_pool_check.py (new) cuts the carry lookups out of gfx_shader.c and checks that an earlier-length translation is freed and passed over, also in the owned branch, while others are served; gfx_shader.c compiles with no new warnings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -648,6 +648,11 @@ A change to the layout of `shader-prepared.bin` (`runtime/prp_file.h`, `runtime/
|
||||
the header alone, checks the parse of both versions and has `make_game.py` read the list the C side wrote. No game
|
||||
files, no GPU.
|
||||
|
||||
A change to which translations of a previous translator are served (`runtime/gfx_shader.c` `carry_usable`,
|
||||
`carry_load`, `carry_find_iid`) passes `python tests\carry_pool_check.py`, which cuts the carry lookups out of
|
||||
`gfx_shader.c` and runs them against stand-in caches: a translation whose texture pool array has the earlier length
|
||||
(32768) is freed and the lookup goes on, one with the current length or no pool is served. No game files, no GPU.
|
||||
|
||||
A change to where the lazy write-back is on by default (`runtime/wb_lazy_choice.h`, `runtime/vk_memory.c`
|
||||
`vk_mem_lazy_decide`) passes `python tests\wb_lazy_check.py`, which builds the header alone and checks the choice and
|
||||
its reason by platform, by GPU driver and by what the player set. No game files, no GPU.
|
||||
|
||||
Reference in New Issue
Block a user