Mesa (master): radeonsi/gfx10: don't call gfx10_destroy_query with compute-only contexts
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Sep 10 03:44:11 UTC 2019
Module: Mesa
Branch: master
Commit: 28adf0d00c6b5506ed2206b950336bdc568d2247
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=28adf0d00c6b5506ed2206b950336bdc568d2247
Author: Marek Olšák <marek.olsak at amd.com>
Date: Fri Aug 23 19:17:05 2019 -0400
radeonsi/gfx10: don't call gfx10_destroy_query with compute-only contexts
This fixes a crash.
Cc: 19.2 <mesa-stable at lists.freedesktop.org>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
---
src/gallium/drivers/radeonsi/si_pipe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index 4edd3e4a4eb..0515ed067ff 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -176,7 +176,7 @@ static void si_destroy_context(struct pipe_context *context)
si_release_all_descriptors(sctx);
- if (sctx->chip_class >= GFX10)
+ if (sctx->chip_class >= GFX10 && sctx->has_graphics)
gfx10_destroy_query(sctx);
pipe_resource_reference(&sctx->esgs_ring, NULL);
More information about the mesa-commit
mailing list