[Mesa-dev] [PATCH 3/5] ddebug: implement get_query_result_resource

Nicolai Hähnle nhaehnle at gmail.com
Mon Apr 24 10:01:35 UTC 2017


Apart from the minor comment on patch 2, patches 1-3 are:

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

On 23.04.2017 01:10, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> ---
>  src/gallium/drivers/ddebug/dd_context.c | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
>
> diff --git a/src/gallium/drivers/ddebug/dd_context.c b/src/gallium/drivers/ddebug/dd_context.c
> index f9d3de5..723e90e 100644
> --- a/src/gallium/drivers/ddebug/dd_context.c
> +++ b/src/gallium/drivers/ddebug/dd_context.c
> @@ -144,20 +144,35 @@ static boolean
>  dd_context_get_query_result(struct pipe_context *_pipe,
>                              struct pipe_query *query, boolean wait,
>                              union pipe_query_result *result)
>  {
>     struct pipe_context *pipe = dd_context(_pipe)->pipe;
>
>     return pipe->get_query_result(pipe, dd_query_unwrap(query), wait, result);
>  }
>
>  static void
> +dd_context_get_query_result_resource(struct pipe_context *_pipe,
> +                                     struct pipe_query *query,
> +                                     boolean wait,
> +                                     enum pipe_query_value_type result_type,
> +                                     int index,
> +                                     struct pipe_resource *resource,
> +                                     unsigned offset)
> +{
> +   struct pipe_context *pipe = dd_context(_pipe)->pipe;
> +
> +   pipe->get_query_result_resource(pipe, dd_query_unwrap(query), wait,
> +                                   result_type, index, resource, offset);
> +}
> +
> +static void
>  dd_context_set_active_query_state(struct pipe_context *_pipe, boolean enable)
>  {
>     struct pipe_context *pipe = dd_context(_pipe)->pipe;
>
>     pipe->set_active_query_state(pipe, enable);
>  }
>
>  static void
>  dd_context_render_condition(struct pipe_context *_pipe,
>                              struct pipe_query *query, boolean condition,
> @@ -778,20 +793,21 @@ dd_context_create(struct dd_screen *dscreen, struct pipe_context *pipe)
>
>     dctx->base.destroy = dd_context_destroy;
>
>     CTX_INIT(render_condition);
>     CTX_INIT(create_query);
>     CTX_INIT(create_batch_query);
>     CTX_INIT(destroy_query);
>     CTX_INIT(begin_query);
>     CTX_INIT(end_query);
>     CTX_INIT(get_query_result);
> +   CTX_INIT(get_query_result_resource);
>     CTX_INIT(set_active_query_state);
>     CTX_INIT(create_blend_state);
>     CTX_INIT(bind_blend_state);
>     CTX_INIT(delete_blend_state);
>     CTX_INIT(create_sampler_state);
>     CTX_INIT(bind_sampler_states);
>     CTX_INIT(delete_sampler_state);
>     CTX_INIT(create_rasterizer_state);
>     CTX_INIT(bind_rasterizer_state);
>     CTX_INIT(delete_rasterizer_state);
>


-- 
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.


More information about the mesa-dev mailing list