llvmpipe: s/unsigned/enum pipe_query_type/
authorBrian Paul <brianp@vmware.com>
Tue, 4 Apr 2023 02:28:15 +0000 (20:28 -0600)
committerMarge Bot <emma+marge@anholt.net>
Wed, 5 Apr 2023 03:49:16 +0000 (03:49 +0000)
Note we should do the same for pipe_context::create_query()'s
query_type parameter.  That would touch quite a few files.

Signed-off-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22281>

src/gallium/drivers/llvmpipe/lp_query.h

index f0c0814..ef10ac3 100644 (file)
@@ -45,7 +45,7 @@ struct llvmpipe_query {
    uint64_t start[LP_MAX_THREADS];  /* start count value for each thread */
    uint64_t end[LP_MAX_THREADS];    /* end count value for each thread */
    struct lp_fence *fence;          /* fence from last scene this was binned in */
-   unsigned type;                   /* PIPE_QUERY_* */
+   enum pipe_query_type type;
    unsigned index;
    unsigned num_primitives_generated[PIPE_MAX_VERTEX_STREAMS];
    unsigned num_primitives_written[PIPE_MAX_VERTEX_STREAMS];