crocus: Free intel_perf_config and intel_perf_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:
José Roberto de Souza
2024-05-03 12:08:07 -07:00
committed by Marge Bot
parent eb97d813c2
commit b98538d54c
2 changed files with 4 additions and 0 deletions
@@ -30,6 +30,7 @@
#include "util/u_upload_mgr.h"
#include "drm-uapi/i915_drm.h"
#include "crocus_context.h"
#include "crocus_perf.h"
#include "crocus_resource.h"
#include "crocus_screen.h"
#include "common/i915/intel_defines.h"
@@ -191,6 +192,7 @@ crocus_destroy_context(struct pipe_context *ctx)
blorp_finish(&ice->blorp);
intel_perf_free_context(ice->perf_ctx);
if (ctx->stream_uploader)
u_upload_destroy(ctx->stream_uploader);
@@ -48,6 +48,7 @@
#include "crocus_context.h"
#include "crocus_defines.h"
#include "crocus_fence.h"
#include "crocus_perf.h"
#include "crocus_pipe.h"
#include "crocus_resource.h"
#include "crocus_screen.h"
@@ -624,6 +625,7 @@ crocus_get_timestamp(struct pipe_screen *pscreen)
void
crocus_screen_destroy(struct crocus_screen *screen)
{
intel_perf_free(screen->perf_cfg);
u_transfer_helper_destroy(screen->base.transfer_helper);
crocus_bufmgr_unref(screen->bufmgr);
disk_cache_destroy(screen->disk_cache);