From 65ccee2dc2d1408765a93f92df81f4f383a23c47 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Thu, 19 Oct 2017 23:12:48 +0200 Subject: [PATCH] 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 --- src/gallium/drivers/etnaviv/etnaviv_query.h | 2 +- src/gallium/drivers/etnaviv/etnaviv_query_sw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: -- 2.30.2