intel/perf: Use intel_perf_context as ralloc parent of sample buffers

Prefer the context instead of the config structure.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41591>
This commit is contained in:
Caio Oliveira 2026-05-14 18:28:59 -07:00 committed by Marge Bot
parent e6734ed39e
commit f7fed3bdf8

View file

@ -420,7 +420,7 @@ get_free_sample_buf(struct intel_perf_context *perf_ctx)
if (node)
buf = brw_exec_node_data(struct oa_sample_buf, node, link);
else {
buf = ralloc_size(perf_ctx->perf, sizeof(*buf) + oa_sample_buf_buf_length(perf_ctx->perf));
buf = ralloc_size(perf_ctx, sizeof(*buf) + oa_sample_buf_buf_length(perf_ctx->perf));
brw_exec_node_init(&buf->link);
buf->refcount = 0;