Skip to content
Snippets Groups Projects
Commit 732950bf authored by Marek Olšák's avatar Marek Olšák Committed by Dylan Baker
Browse files

radeonsi/gfx10: don't call gfx10_destroy_query with compute-only contexts


This fixes a crash.

Cc: 19.2 <mesa-stable@lists.freedesktop.org>
Reviewed-by: default avatarPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
(cherry picked from commit 28adf0d0)
parent 637e02c1
No related branches found
No related tags found
Loading
......@@ -174,7 +174,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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment