mesa: fix crocus memory leak crashing gnome-shell

This commit is contained in:
Dave Airlie 2022-08-05 07:16:30 +10:00
parent aa173ee2f5
commit 9ce4b24ce2
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,11 @@
diff -up mesa-21.3.9/src/gallium/drivers/crocus/crocus_query.c.dma mesa-21.3.9/src/gallium/drivers/crocus/crocus_query.c
--- mesa-21.3.9/src/gallium/drivers/crocus/crocus_query.c.dma 2022-08-05 07:14:53.047132940 +1000
+++ mesa-21.3.9/src/gallium/drivers/crocus/crocus_query.c 2022-08-05 07:15:25.843585420 +1000
@@ -516,6 +516,7 @@ crocus_destroy_query(struct pipe_context
crocus_syncobj_reference(screen, &query->syncobj, NULL);
screen->base.fence_reference(ctx->screen, &query->fence, NULL);
}
+ pipe_resource_reference(&query->query_state_ref.res, NULL);
free(query);
}

View file

@ -79,6 +79,8 @@ Patch0006: 0004-Revert-nouveau-no-modifier-the-invalid-modifier.patch
Patch0007: 0005-Revert-nouveau-Use-DRM_FORMAT_MOD_NVIDIA_BLOCK_LINEA.patch
Patch0008: 0006-Revert-nouveau-Stash-supported-sector-layout-in-scre.patch
Patch0010: crocus-leak-query-fix.patch
BuildRequires: meson >= 0.45
BuildRequires: gcc
BuildRequires: gcc-c++