mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-20 08:19:56 -04:00
Apply texture and sampler registrations between submissions, in the order the game made them.
A registration the game made while a submission was being replayed changed the slot table under that submission, whose texture pool set is written as the replay goes and read when it runs. Such a registration now waits and takes effect once the submission has gone to the queue; with the replay on its own thread it goes into the replay queue ahead of the next item. NX2NAVI_REG_ORDER=0 restores the old behaviour. In a town session the white kerb, stair and wall-top edges of single frames were gone with it; the log counts the registrations that waited. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -274,6 +274,10 @@ void vk_pool_fini(pool_t *p); // drops images cut from the pool; wa
|
||||
int vk_pool_map_virtual(pool_t *v, int n, const void *requests); // nvn_mapping_t[n], checked by the front end
|
||||
void vk_texture_register(int id, const tex_t *t, const view_t *v); // texture descriptor slot (copied)
|
||||
void vk_sampler_register(int id, const samp_par *s); // sampler descriptor slot (copied)
|
||||
// vk_backend.c "registrations in submit order": vk_sync.c submit calls these around the replay of a submission of the
|
||||
// game's commands. A registration the game makes in between waits and takes effect at the end.
|
||||
void vk_reg_replay_begin(void);
|
||||
void vk_reg_replay_end(uint64_t fence);
|
||||
void vk_texture_release(const tex_t *t); // TextureFinalize: the image stays for slots that still name its storage
|
||||
void vk_read_texels(const tex_t *t, const view_t *v, const NVNcopyRegion *r, uint8_t *dst, uint64_t row, uint64_t img);
|
||||
void vk_write_texels(const tex_t *t, const view_t *v, const NVNcopyRegion *r, const uint8_t *src, uint64_t row, uint64_t img);
|
||||
|
||||
Reference in New Issue
Block a user