diff options
author | Marek Olšák <marek.olsak@amd.com> | 2019-08-23 19:17:05 -0400 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-09-10 09:51:57 -0700 |
commit | 732950bf360684602c26a0c6de013c9f7da804b8 (patch) | |
tree | 757544675c8237c39a07abe3aa36f397ba223a38 | |
parent | 637e02c1b195b0e11f5fea6e36b1fc14c359f748 (diff) | |
download | mesa-732950bf360684602c26a0c6de013c9f7da804b8.tar.gz |
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: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
(cherry picked from commit 28adf0d00c6b5506ed2206b950336bdc568d2247)
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index ae5601a8730..b42b17a274a 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -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); |