mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
intel/perf: Add intel_perf_free_context()
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29077>
This commit is contained in:
parent
ebe8d2f9ea
commit
2cecf3e8a8
2 changed files with 7 additions and 0 deletions
|
|
@ -580,6 +580,11 @@ intel_perf_config(struct intel_perf_context *ctx)
|
||||||
return ctx->perf;
|
return ctx->perf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void intel_perf_free_context(struct intel_perf_context *perf_ctx)
|
||||||
|
{
|
||||||
|
ralloc_free(perf_ctx);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
intel_perf_init_context(struct intel_perf_context *perf_ctx,
|
intel_perf_init_context(struct intel_perf_context *perf_ctx,
|
||||||
struct intel_perf_config *perf_cfg,
|
struct intel_perf_config *perf_cfg,
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,8 @@ intel_perf_read_oa_stream(struct intel_perf_context *perf_ctx,
|
||||||
|
|
||||||
struct intel_perf_context *intel_perf_new_context(void *parent);
|
struct intel_perf_context *intel_perf_new_context(void *parent);
|
||||||
|
|
||||||
|
void intel_perf_free_context(struct intel_perf_context *perf_ctx);
|
||||||
|
|
||||||
void intel_perf_init_context(struct intel_perf_context *perf_ctx,
|
void intel_perf_init_context(struct intel_perf_context *perf_ctx,
|
||||||
struct intel_perf_config *perf_cfg,
|
struct intel_perf_config *perf_cfg,
|
||||||
void * mem_ctx, /* ralloc context */
|
void * mem_ctx, /* ralloc context */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue