[PATCH v2 5/5] etnaviv: fix implicit conversion warning
Christian Gmeiner
christian.gmeiner at gmail.com
Thu Oct 19 21:12:48 UTC 2017
Galliums query_type used in APIs is unsigned.
Signed-off-by: Christian Gmeiner <christian.gmeiner at gmail.com>
Reviewed-by: Wladimir J. van der Laan <laanwj at gmail.com>
---
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 e099e10f7c..8927266057 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 ea79467b61..dd9bac3850 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.13.6
More information about the etnaviv
mailing list