[Mesa-dev] [PATCH] st/mesa: fix PRIMITIVES_GENERATED query after the "pipeline stat single" changes

Marek Olšák maraeo at gmail.com
Tue Jan 22 17:21:58 UTC 2019


ping

On Fri, Jan 18, 2019 at 11:27 AM Marek Olšák <maraeo at gmail.com> wrote:

> From: Marek Olšák <marek.olsak at amd.com>
>
> ---
>  src/mesa/state_tracker/st_cb_queryobj.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_cb_queryobj.c
> b/src/mesa/state_tracker/st_cb_queryobj.c
> index abb126547c9..642b901d05a 100644
> --- a/src/mesa/state_tracker/st_cb_queryobj.c
> +++ b/src/mesa/state_tracker/st_cb_queryobj.c
> @@ -84,21 +84,22 @@ st_DeleteQuery(struct gl_context *ctx, struct
> gl_query_object *q)
>     struct st_query_object *stq = st_query_object(q);
>
>     free_queries(pipe, stq);
>
>     free(stq);
>  }
>
>  static int
>  target_to_index(const struct st_context *st, const struct gl_query_object
> *q)
>  {
> -   if (q->Target == GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN ||
> +   if (q->Target == GL_PRIMITIVES_GENERATED ||
> +       q->Target == GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN ||
>         q->Target == GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB)
>        return q->Stream;
>
>     if (st->has_single_pipe_stat) {
>        switch (q->Target) {
>        case GL_VERTICES_SUBMITTED_ARB:
>           return PIPE_STAT_QUERY_IA_VERTICES;
>        case GL_PRIMITIVES_SUBMITTED_ARB:
>           return PIPE_STAT_QUERY_IA_PRIMITIVES;
>        case GL_VERTEX_SHADER_INVOCATIONS_ARB:
> --
> 2.17.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190122/09ed1f92/attachment-0001.html>


More information about the mesa-dev mailing list