diff options
author | Nicolai Hähnle <[email protected]> | 2018-09-20 10:19:30 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-07-03 15:51:12 -0400 |
commit | e241b405ca3d9da5167af2f224520227a9a5377e (patch) | |
tree | 99d9634c76619edef72e1f9667f9e5de0a388265 /src/gallium/drivers/radeonsi/si_perfcounter.c | |
parent | 064f195ef01fbcd0cf49b32cb48cc03b91470527 (diff) |
radeonsi: pass the context to query destroy functions
We'll need this in the future.
Acked-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_perfcounter.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_perfcounter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_perfcounter.c b/src/gallium/drivers/radeonsi/si_perfcounter.c index 75bd61730da..d073b5821fb 100644 --- a/src/gallium/drivers/radeonsi/si_perfcounter.c +++ b/src/gallium/drivers/radeonsi/si_perfcounter.c @@ -749,7 +749,7 @@ static void si_pc_emit_read(struct si_context *sctx, } } -static void si_pc_query_destroy(struct si_screen *sscreen, +static void si_pc_query_destroy(struct si_context *sctx, struct si_query *squery) { struct si_query_pc *query = (struct si_query_pc *)squery; @@ -762,7 +762,7 @@ static void si_pc_query_destroy(struct si_screen *sscreen, FREE(query->counters); - si_query_buffer_destroy(sscreen, &query->buffer); + si_query_buffer_destroy(sctx->screen, &query->buffer); FREE(query); } @@ -1100,7 +1100,7 @@ struct pipe_query *si_create_batch_query(struct pipe_context *ctx, return (struct pipe_query *)query; error: - si_pc_query_destroy(screen, &query->b); + si_pc_query_destroy((struct si_context *)ctx, &query->b); return NULL; } |