vk: profiler: fixup incorrect __FUNCTION__ macro usage
No idea how it could work before
This commit is contained in:
parent
e1afb2a9de
commit
4a5fc186ea
|
@ -269,7 +269,7 @@ static void getCurrentFontMetrics(void) {
|
|||
}
|
||||
|
||||
void R_ShowExtendedProfilingData(uint32_t prev_frame_index, uint64_t gpu_frame_begin_ns, uint64_t gpu_frame_end_ns) {
|
||||
APROF_SCOPE_DECLARE_BEGIN(__FUNCTION__, __FUNCTION__);
|
||||
APROF_SCOPE_DECLARE_BEGIN(function, __FUNCTION__);
|
||||
|
||||
g_slows.frame.message[0] = '\0';
|
||||
|
||||
|
@ -312,7 +312,7 @@ void R_ShowExtendedProfilingData(uint32_t prev_frame_index, uint64_t gpu_frame_b
|
|||
speedsPrintf("Dirty light cells: %d\n\tsize = %dKiB, ranges = %d\n", dirty, (int)(dirty * sizeof(struct LightCluster) / 1024), g_lights.stats.ranges_uploaded);
|
||||
}
|
||||
|
||||
APROF_SCOPE_END(__FUNCTION__);
|
||||
APROF_SCOPE_END(function);
|
||||
}
|
||||
|
||||
static void togglePause( void ) {
|
||||
|
|
|
@ -53,7 +53,7 @@ void R_VkStagingShutdown(void) {
|
|||
}
|
||||
|
||||
void R_VkStagingFlushSync( void ) {
|
||||
APROF_SCOPE_DECLARE_BEGIN(__FUNCTION__, __FUNCTION__);
|
||||
APROF_SCOPE_DECLARE_BEGIN(function, __FUNCTION__);
|
||||
|
||||
const VkCommandBuffer cmdbuf = R_VkStagingCommit();
|
||||
if (!cmdbuf)
|
||||
|
@ -82,7 +82,7 @@ void R_VkStagingFlushSync( void ) {
|
|||
R_FlippingBuffer_Clear(&g_staging.buffer_alloc);
|
||||
|
||||
end:
|
||||
APROF_SCOPE_END(__FUNCTION__);
|
||||
APROF_SCOPE_END(function);
|
||||
};
|
||||
|
||||
static uint32_t allocateInRing(uint32_t size, uint32_t alignment) {
|
||||
|
|
|
@ -193,7 +193,7 @@ void R_VkSwapchainShutdown( void ) {
|
|||
}
|
||||
|
||||
r_vk_swapchain_framebuffer_t R_VkSwapchainAcquire( VkSemaphore sem_image_available ) {
|
||||
APROF_SCOPE_DECLARE_BEGIN(__FUNCTION__, __FUNCTION__);
|
||||
APROF_SCOPE_DECLARE_BEGIN(function, __FUNCTION__);
|
||||
|
||||
r_vk_swapchain_framebuffer_t ret = {0};
|
||||
qboolean force_recreate = false;
|
||||
|
@ -236,7 +236,7 @@ r_vk_swapchain_framebuffer_t R_VkSwapchainAcquire( VkSemaphore sem_image_availa
|
|||
ret.image = g_swapchain.images[ret.index];
|
||||
ret.view = g_swapchain.image_views[ret.index];
|
||||
|
||||
APROF_SCOPE_END(__FUNCTION__);
|
||||
APROF_SCOPE_END(function);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue