gallium/hud: s/unsigned/enum pipe_query_type/
authorBrian Paul <brianp@vmware.com>
Thu, 11 Jan 2018 16:50:42 +0000 (09:50 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 17 Jan 2018 18:17:56 +0000 (11:17 -0700)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/hud/hud_driver_query.c
src/gallium/auxiliary/hud/hud_private.h

index 085bc627ec3dd0493a82f1e81a1b7a41bdc26c7a..630aae0118f4391d57f1850e0d7672dd04ca21f4 100644 (file)
@@ -194,7 +194,7 @@ hud_batch_query_cleanup(struct hud_batch_query_context **pbq,
 
 struct query_info {
    struct hud_batch_query_context *batch;
-   unsigned query_type;
+   enum pipe_query_type query_type;
    unsigned result_index; /* unit depends on query_type */
    enum pipe_driver_query_result_type result_type;
 
@@ -349,7 +349,8 @@ free_query_info(void *ptr, struct pipe_context *pipe)
 void
 hud_pipe_query_install(struct hud_batch_query_context **pbq,
                        struct hud_pane *pane,
-                       const char *name, unsigned query_type,
+                       const char *name,
+                       enum pipe_query_type query_type,
                        unsigned result_index,
                        uint64_t max_value, enum pipe_driver_query_type type,
                        enum pipe_driver_query_result_type result_type,
index 9e8d74c2f885f4a1cd84b58ee5f38287d17564dd..a51436ff5f15d99e077d5820cc64521a05125401 100644 (file)
@@ -162,7 +162,8 @@ void hud_thread_counter_install(struct hud_pane *pane, const char *name,
                                 enum hud_counter counter);
 void hud_pipe_query_install(struct hud_batch_query_context **pbq,
                             struct hud_pane *pane,
-                            const char *name, unsigned query_type,
+                            const char *name,
+                            enum pipe_query_type query_type,
                             unsigned result_index,
                             uint64_t max_value,
                             enum pipe_driver_query_type type,