Say in the flight recorder's blank-slot events what the slot resolves to, and whether any shader reads the pool as a volume.

Ten slots a frame are noted as having no picture when their submission ends: the 128x72 and 64x36 volumes the game registers under new slot numbers in every frame. The events now tell a slot whose entry cannot be viewed in any kind a shader reads from one whose lookup found nothing.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-12 11:28:22 -05:00
parent b1e8c1427b
commit f45273bfe5
3 changed files with 15 additions and 6 deletions

View File

@@ -4442,11 +4442,14 @@ uint32_t vk_texture_slot_why_locked(int id, uint64_t *addr, uint32_t *format, ui
make_key(&s->t, &k);
const Tex *own = nvn_hm_get(&by_key, &k);
*addr = k.addr, *format = (uint32_t)s->t.d.format, *w = s->t.d.width, *h = s->t.d.height;
const Tex *ce = s->ce && s->cgen == agen[sinfo[id] & 0xffff] ? s->ce : NULL; // an older one may be gone
return (s->finalized ? 1u : 0) | (own ? 2u : 0) | (own && own->released ? 4u : 0) | (own && own->superseded ? 8u : 0) |
(own && own->overwritten ? 16u : 0) | (own && own->uploaded ? 32u : 0) |
(s->t.mem && mem_readable((uint64_t)(uintptr_t)s->t.mem, s->t.L.size) ? 64u : 0) |
(holds.n && nvn_hm_get(&holds, &k) ? 128u : 0) | (tex_mirrored(&s->t) ? 256u : 0) |
(own && own->pub.gpu_owned ? 512u : 0) | (own && own->retiring ? 1024u : 0);
(own && own->pub.gpu_owned ? 512u : 0) | (own && own->retiring ? 1024u : 0) |
// what the slot's last lookup kept (vk_texture_by_id_locked): an entry, and whether its image is a volume
(ce ? 2048u : 0) | (ce && ce->pub.type == VK_IMAGE_TYPE_3D ? 4096u : 0) | (ce && ce != own ? 8192u : 0);
}
void vk_texture_lock(void) { lock(); }