mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-12 00:20:43 +01:00
radeonsi/compute: Free program and program.kernels on shutdown
v2: Fix indentation Reviewed-by: Tom Stellard <thomas.stellard@amd.com> CC: "10.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
d41b10f811
commit
35dad4a1e2
1 changed files with 15 additions and 1 deletions
|
|
@ -245,7 +245,21 @@ static void radeonsi_launch_grid(
|
|||
}
|
||||
|
||||
|
||||
static void si_delete_compute_state(struct pipe_context *ctx, void* state){}
|
||||
static void si_delete_compute_state(struct pipe_context *ctx, void* state){
|
||||
struct si_pipe_compute *program = (struct si_pipe_compute *)state;
|
||||
|
||||
if (!state) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (program->kernels) {
|
||||
FREE(program->kernels);
|
||||
}
|
||||
|
||||
//And then free the program itself.
|
||||
FREE(program);
|
||||
}
|
||||
|
||||
static void si_set_compute_resources(struct pipe_context * ctx_,
|
||||
unsigned start, unsigned count,
|
||||
struct pipe_surface ** surfaces) { }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue