From: Christian Gmeiner Date: Thu, 19 Oct 2017 21:12:48 +0000 (+0200) Subject: etnaviv: fix implicit conversion warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=65ccee2dc2d1408765a93f92df81f4f383a23c47;p=mesa.git etnaviv: fix implicit conversion warning Galliums query_type used in APIs is unsigned. Signed-off-by: Christian Gmeiner Reviewed-by: Wladimir J. van der Laan --- diff --git a/src/gallium/drivers/etnaviv/etnaviv_query.h b/src/gallium/drivers/etnaviv/etnaviv_query.h index e099e10f7c5..89272660576 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_query.h +++ b/src/gallium/drivers/etnaviv/etnaviv_query.h @@ -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 * diff --git a/src/gallium/drivers/etnaviv/etnaviv_query_sw.c b/src/gallium/drivers/etnaviv/etnaviv_query_sw.c index ea79467b614..dd9bac38501 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_query_sw.c +++ b/src/gallium/drivers/etnaviv/etnaviv_query_sw.c @@ -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: