diff options
author | Christian Gmeiner <[email protected]> | 2017-10-19 23:12:48 +0200 |
---|---|---|
committer | Christian Gmeiner <[email protected]> | 2017-10-20 12:42:55 +0200 |
commit | 65ccee2dc2d1408765a93f92df81f4f383a23c47 (patch) | |
tree | a2e9046505d78bf848ce1cdee19ae28ab70465ef /src/gallium | |
parent | 57a586828f848bea22f801306db5d38e26565524 (diff) |
etnaviv: fix implicit conversion warning
Galliums query_type used in APIs is unsigned.
Signed-off-by: Christian Gmeiner <[email protected]>
Reviewed-by: Wladimir J. van der Laan <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_query.h | 2 | ||||
-rw-r--r-- | 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: |