mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-21 12:55:57 +00:00
Skip the present lock for the Reflex frame ID when nothing reads it, and declare the front end's Reflex calls in gfx.h
vk_reflex_present_frame took g_pl on every present although only flip_locked's VkPresentIdKHR (Reflex) and latency_note (TOTK_TRACE=perf) read g_blit_pid. nvn_api_obj.c and ov_input.c declared vk_reflex_marker, vk_reflex_frame_begin, vk_reflex_frame and vk_reflex_sleep locally; they now come from gfx.h, the graphics layer's interface, which gfx_present.c also sees through vk.h, so a changed signature fails to compile. vk.h stays out of those two files: it brings in Vulkan, VMA and vk_rec.h's vkCmd* macros. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
52b099bacb
commit
7fa727bbc5
5 files changed
+10
-12
No files matched your search
@@ -19,11 +19,6 @@
|
||||
#include "nvn_tex.h"
|
||||
#include "platform/platform.h"
|
||||
|
||||
void vk_reflex_marker(int marker, uint64_t present_id);
|
||||
uint64_t vk_reflex_frame_begin(void);
|
||||
uint64_t vk_reflex_frame(void);
|
||||
void vk_reflex_sleep(void);
|
||||
|
||||
// ---------- Descriptor pools
|
||||
// NVNboolean nvnTexturePoolInitialize(NVNtexturePool *tp, const NVNmemoryPool *p, ptrdiff_t offset, int n)
|
||||
NVN_API(nvnTexturePoolInitialize) {
|
||||
|
||||
Reference in new issue
Block a user