diff options
author | Marek Olšák <[email protected]> | 2019-08-23 19:17:05 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-09-09 23:43:03 -0400 |
commit | 28adf0d00c6b5506ed2206b950336bdc568d2247 (patch) | |
tree | 40a7a794d97d17ecb85e24a5add707df4d54de33 | |
parent | 2f42d4cacc9a12bc210c279d86833bf210c9c806 (diff) |
radeonsi/gfx10: don't call gfx10_destroy_query with compute-only contexts
This fixes a crash.
Cc: 19.2 <[email protected]>
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
-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 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); |