Check the texture pool's set against the device's descriptor limits, and name the slot a carried translation reads.

The larger pool asks for 655,360 sampled images in one set where 524,288 were asked before. The start now logs the
device's limits for one set and one stage next to that count, warns when the count is over them, and a refused
layout ends the start with the limits named instead of a bare failure.

The log line for a slot registered past the pool names both slots a shader reads instead: the pool's last entry, and
the last of the old length for a translation carried over from the translator before. The comments say what they say
without an issue number.

The translator's identity changes with this pool size: after the update every install translates its shaders again
in the background, the earlier translations serve meanwhile, and a shader gets the ground fix once it is translated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-12 22:46:24 -05:00
parent e0271c0298
commit 2571e180c8
4 changed files with 37 additions and 6 deletions

View File

@@ -657,8 +657,9 @@ int vk_sampler_slot_count_locked(void);
// VK_POOL_TEX covers the game's whole texture pool: Ocarina makes one of 33068 descriptors (nvnTexturePoolInitialize),
// and with 32768 the translator's clamp sent every handle from 32768 up to slot 32767, so the textures the game
// numbered there (some ground after an area load) were drawn with whatever slot 32767 held, often an empty image:
// see-through ground until the area was loaded again (#569). 16 kinds x 40960 = 655,360 sampled images in set 2, under
// NVIDIA's 1,048,576 update-after-bind limit with room for the bound slots. vk_texture_register logs a slot past it.
// see-through ground until the area was loaded again. 16 kinds x 40960 = 655,360 sampled images in set 2, under
// NVIDIA's 1,048,576 update-after-bind limit with room for the bound slots; vk_exec_draw.c pool_layout_make logs the
// device's limits and says which one a failed layout passed. vk_texture_register logs a slot past the pool.
#define VK_POOL_TEX 40960 // as the translator's Accessor.TexturePoolLength
#define VK_POOL_TEX_CARRIED 32768 // the length before: carried translations still declare it
#define VK_POOL_SAMP 4096 // Accessor.SamplerPoolLength