[Mesa-dev] [PATCH] gallium/radeon: fix PIPE_QUERY_GPU_FINISHED
Michel Dänzer
michel at daenzer.net
Sun Nov 8 23:41:22 PST 2015
On 09.11.2015 06:43, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> Broken by the addition of r600_multi_fence
> in 3b37155a68acc351cba86a1fa142bd0de2192d4c
> ---
> src/gallium/drivers/radeon/r600_query.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/radeon/r600_query.c b/src/gallium/drivers/radeon/r600_query.c
> index 9a54025..2bb5732 100644
> --- a/src/gallium/drivers/radeon/r600_query.c
> +++ b/src/gallium/drivers/radeon/r600_query.c
> @@ -532,7 +532,7 @@ static void r600_end_query(struct pipe_context *ctx, struct pipe_query *query)
> case PIPE_QUERY_TIMESTAMP_DISJOINT:
> return;
> case PIPE_QUERY_GPU_FINISHED:
> - rctx->rings.gfx.flush(rctx, RADEON_FLUSH_ASYNC, &rquery->fence);
> + ctx->flush(ctx, &rquery->fence, 0);
> return;
> case R600_QUERY_DRAW_CALLS:
> rquery->end_result = rctx->num_draw_calls;
>
Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the mesa-dev
mailing list