diff options
author | Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> | 2020-12-08 13:08:10 +0100 |
---|---|---|
committer | Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> | 2021-01-07 10:10:17 +0100 |
commit | 07c1504d1b08d4f61aeada7364d63e26d05d05f9 (patch) | |
tree | 0c917321e508d545284e75ea38a713abde8e6b30 /src/gallium/drivers/radeonsi/si_pipe.h | |
parent | a46e8304446b7c1a0673ad1634139541bb82d240 (diff) |
radeonsi: implement SQTT support
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8002>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h index 113c2f79676..339021a792d 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.h +++ b/src/gallium/drivers/radeonsi/si_pipe.h @@ -31,6 +31,7 @@ #include "util/u_idalloc.h" #include "util/u_suballoc.h" #include "util/u_threaded_context.h" +#include "ac_sqtt.h" #ifdef __cplusplus extern "C" { @@ -233,6 +234,7 @@ enum DBG_NO_FMASK, DBG_TMZ, + DBG_SQTT, DBG_COUNT }; @@ -1297,6 +1299,11 @@ struct si_context { struct hash_table *dirty_implicit_resources; pipe_draw_vbo_func draw_vbo[NUM_GFX_VERSIONS - GFX6][2][2][2][2]; + + /* SQTT */ + struct ac_thread_trace_data *thread_trace; + struct pipe_fence_handle *last_sqtt_fence; + bool thread_trace_enabled; }; /* si_blit.c */ @@ -1558,6 +1565,16 @@ bool si_texture_disable_dcc(struct si_context *sctx, struct si_texture *tex); void si_init_screen_texture_functions(struct si_screen *sscreen); void si_init_context_texture_functions(struct si_context *sctx); +/* si_sqtt.c */ +void si_sqtt_write_event_marker(struct si_context* sctx, struct radeon_cmdbuf *rcs, + enum rgp_sqtt_marker_event_type api_type, + uint32_t vertex_offset_user_data, + uint32_t instance_offset_user_data, + uint32_t draw_index_user_data); +bool si_init_thread_trace(struct si_context *sctx); +void si_destroy_thread_trace(struct si_context *sctx); +void si_handle_thread_trace(struct si_context *sctx, struct radeon_cmdbuf *rcs); + /* * common helpers */ |