mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
turnip: add some cpu tracepionts
Add tracepoints for pipeline creations and queue submits. Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18262>
This commit is contained in:
parent
89d49bb9de
commit
63b1290c2f
4 changed files with 5 additions and 0 deletions
|
|
@ -33,6 +33,7 @@
|
|||
#include "util/list.h"
|
||||
#include "util/log.h"
|
||||
#include "util/macros.h"
|
||||
#include "util/perf/cpu_trace.h"
|
||||
#include "util/sparse_array.h"
|
||||
#include "util/u_atomic.h"
|
||||
#include "util/u_dynarray.h"
|
||||
|
|
|
|||
|
|
@ -1227,6 +1227,7 @@ tu_device_wait_u_trace(struct tu_device *dev, struct tu_u_trace_syncobj *syncobj
|
|||
VkResult
|
||||
tu_queue_submit(struct vk_queue *vk_queue, struct vk_queue_submit *submit)
|
||||
{
|
||||
MESA_TRACE_FUNC();
|
||||
struct tu_queue *queue = container_of(vk_queue, struct tu_queue, vk);
|
||||
uint32_t perf_pass_index = queue->device->perfcntrs_pass_cs ?
|
||||
submit->perf_pass_index : ~0;
|
||||
|
|
|
|||
|
|
@ -358,6 +358,7 @@ tu_QueueSubmit2(VkQueue _queue,
|
|||
const VkSubmitInfo2 *pSubmits,
|
||||
VkFence _fence)
|
||||
{
|
||||
MESA_TRACE_FUNC();
|
||||
TU_FROM_HANDLE(tu_queue, queue, _queue);
|
||||
TU_FROM_HANDLE(tu_syncobj, fence, _fence);
|
||||
VkResult result = VK_SUCCESS;
|
||||
|
|
|
|||
|
|
@ -4155,6 +4155,7 @@ tu_CreateGraphicsPipelines(VkDevice device,
|
|||
const VkAllocationCallbacks *pAllocator,
|
||||
VkPipeline *pPipelines)
|
||||
{
|
||||
MESA_TRACE_FUNC();
|
||||
VkResult final_result = VK_SUCCESS;
|
||||
uint32_t i = 0;
|
||||
|
||||
|
|
@ -4362,6 +4363,7 @@ tu_CreateComputePipelines(VkDevice device,
|
|||
const VkAllocationCallbacks *pAllocator,
|
||||
VkPipeline *pPipelines)
|
||||
{
|
||||
MESA_TRACE_FUNC();
|
||||
VkResult final_result = VK_SUCCESS;
|
||||
uint32_t i = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue