OSDN Git Service

etnaviv: fix implicit conversion warning
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Thu, 19 Oct 2017 21:12:48 +0000 (23:12 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 20 Oct 2017 10:42:55 +0000 (12:42 +0200)
Galliums query_type used in APIs is unsigned.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Wladimir J. van der Laan <laanwj@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_query.h
src/gallium/drivers/etnaviv/etnaviv_query_sw.c

index e099e10..8927266 100644 (file)
@@ -44,7 +44,7 @@ struct etna_query_funcs {
 struct etna_query {
    const struct etna_query_funcs *funcs;
    bool active;
-   int type;
+   unsigned type;
 };
 
 static inline struct etna_query *
index ea79467..dd9bac3 100644 (file)
@@ -42,7 +42,7 @@ etna_sw_destroy_query(struct etna_context *ctx, struct etna_query *q)
 }
 
 static uint64_t
-read_counter(struct etna_context *ctx, int type)
+read_counter(struct etna_context *ctx, unsigned type)
 {
    switch (type) {
    case PIPE_QUERY_PRIMITIVES_EMITTED: