Skip to content
Snippets Groups Projects
Commit 28adf0d0 authored by Marek Olšák's avatar Marek Olšák
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>
parent 2f42d4ca
No related branches found
No related tags found
Loading
......@@ -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);
......
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