mesa/src/panfrost/genxml
Boris Brezillon bbc8ce2704 pan/cs: Don't leak builder resources
cs_finish() is doing two things:

1. wrapping up the CS to prepare for its execution
2. freeing the temporary instrs array and maybe_ctx allocations

Mixing those two things lead to confusion and leaks, so let's split
those into cs_end() and cs_builder_fini(), and make sure panvk/panfrost
call both when appropriate.

Fixes: 50d2396b7e ("pan/cs: add helpers to emit contiguous csf code blocks")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38923>
2025-12-16 11:02:15 +01:00
..
test pan/cs: Don't leak builder resources 2025-12-16 11:02:15 +01:00
common.xml pan/lib: do not duplicate enum mali_pixel_kill 2025-08-20 00:05:36 +00:00
cs_builder.h pan/cs: Don't leak builder resources 2025-12-16 11:02:15 +01:00
decode.c pan/decode: Fix indent in pandecode_dcd 2025-12-16 08:22:23 +00:00
decode.h
decode_common.c pan: Move disassembly wrappers to a new pan_compiler.h 2025-12-02 21:00:30 +00:00
decode_csf.c panfrost: make RUN_COMPUTE.ep_limit configurable 2025-12-10 18:54:48 +00:00
decode_jm.c panfrost, panvk: Use arch version 9 to distinguish between Bifrost & Valhall 2025-06-18 16:09:03 +00:00
gen_macros.h
gen_pack.py pan/genxml: Make sure we catch overflows on 32-bit integer fields 2025-06-25 12:10:37 +02:00
meson.build panfrost/meson: drop invalid C-only -Wno-override-init from C++ args 2025-07-04 13:03:46 +00:00
pan_pack_helpers.h pan/genxml: Add missing parenthesis on pan_cast_and_pack macros 2025-07-21 16:32:51 +00:00
v4.xml pan/genxml: Make sure we catch overflows on 32-bit integer fields 2025-06-25 12:10:37 +02:00
v5.xml pan/genxml: Rework the RT/ZS emission logic 2025-06-27 07:06:07 +00:00
v6.xml pan/genxml: Rework the RT/ZS emission logic 2025-06-27 07:06:07 +00:00
v7.xml pan/genxml: Rework the RT/ZS emission logic 2025-06-27 07:06:07 +00:00
v9.xml pan/genxml: Rename Primitive Index Override 2025-11-20 06:09:16 +00:00
v10.xml pan/genxml: Rename Primitive Index Override 2025-11-20 06:09:16 +00:00
v12.xml panfrost: make RUN_COMPUTE.ep_limit configurable 2025-12-10 18:54:48 +00:00
v13.xml panfrost: make RUN_COMPUTE.ep_limit configurable 2025-12-10 18:54:48 +00:00