mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
radeonsi: fix a GS copy shader leak
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
(cherry picked from commit aa060e276c)
[Emil Velikov: si_shader_destroy() wants the ctx as first argument]
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Conflicts:
src/gallium/drivers/radeonsi/si_shader.c
This commit is contained in:
parent
5d41a78769
commit
141109cc52
1 changed files with 3 additions and 1 deletions
|
|
@ -4201,8 +4201,10 @@ out:
|
|||
|
||||
void si_shader_destroy(struct pipe_context *ctx, struct si_shader *shader)
|
||||
{
|
||||
if (shader->gs_copy_shader)
|
||||
if (shader->gs_copy_shader) {
|
||||
si_shader_destroy(ctx, shader->gs_copy_shader);
|
||||
FREE(shader->gs_copy_shader);
|
||||
}
|
||||
|
||||
if (shader->scratch_bo)
|
||||
r600_resource_reference(&shader->scratch_bo, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue