mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
nv50: free memory allocated by the prog which reads MP perf counters
This fixes a memory leak introduced in6a9c151("nv50: add compute-related MP perf counters on G84+") Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "11.1" <mesa-stable@lists.freedesktop.org> (cherry picked from commit695ae816da)
This commit is contained in:
parent
10ec6685d0
commit
259734ae3f
1 changed files with 5 additions and 0 deletions
|
|
@ -405,6 +405,11 @@ nv50_screen_destroy(struct pipe_screen *pscreen)
|
|||
|
||||
if (screen->blitter)
|
||||
nv50_blitter_destroy(screen);
|
||||
if (screen->pm.prog) {
|
||||
screen->pm.prog->code = NULL; /* hardcoded, don't FREE */
|
||||
nv50_program_destroy(NULL, screen->pm.prog);
|
||||
FREE(screen->pm.prog);
|
||||
}
|
||||
|
||||
nouveau_bo_ref(NULL, &screen->code);
|
||||
nouveau_bo_ref(NULL, &screen->tls_bo);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue