GPU passes: result points, where in the waited-for submissions the results the game's wait needs are done on the GPU, and how much earlier the wait could end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tobim6
2026-11-12 16:23:07 +01:00
parent 306de50589
commit aa1045d411
4 changed files with 115 additions and 0 deletions

View File

@@ -146,6 +146,12 @@ enum {
VK_GAP_MESH_RING, VK_GAP_BC_BACK, VK_GAP_N
};
void vk_gpu_passes_part(VkCommandBuffer cb, int end);
// Result points (NX2NAVI_GPU_PASSES): the submission whose parts follow (vk_sync.c), a result just recorded (VK_RES_*
// bits, vk_exec_note_results), a submission the game's wait after a frame's first submission waited for.
void vk_gpu_passes_fence(uint64_t fence);
void vk_gpu_passes_result(int kinds);
void vk_gpu_passes_waited(uint64_t need);
int vk_sync_result_mask(void); // NX2NAVI_SUBMIT_FINISH_KINDS as read
void vk_gpu_gap_note(int kind, uint64_t units);
// Pass marks wanted and possible (NX2NAVI_PASS_CRUMBS and the extensions): set by vk_crumbs_init.
extern int vk_pass_marks_on;