From: Wladimir J. van der Laan Date: Sat, 18 Nov 2017 09:44:24 +0000 (+0100) Subject: etnaviv: Const-correctness etnaviv_emit.h X-Git-Tag: upstream/18.1.0~3851 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=391c958f082ebb322cddef7d74c103a69da62cb5;p=platform%2Fupstream%2Fmesa.git etnaviv: Const-correctness etnaviv_emit.h The relocation structure is never changed by submitting it. Signed-off-by: Wladimir J. van der Laan Reviewed-by: Philipp Zabel Reviewed-by: Christian Gmeiner Signed-off-by: Lucas Stach --- diff --git a/src/gallium/drivers/etnaviv/etnaviv_emit.h b/src/gallium/drivers/etnaviv/etnaviv_emit.h index 6a3c772..e0c0eda 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_emit.h +++ b/src/gallium/drivers/etnaviv/etnaviv_emit.h @@ -59,7 +59,7 @@ etna_set_state(struct etna_cmd_stream *stream, uint32_t address, uint32_t value) static inline void etna_set_state_reloc(struct etna_cmd_stream *stream, uint32_t address, - struct etna_reloc *reloc) + const struct etna_reloc *reloc) { etna_cmd_stream_reserve(stream, 2); etna_emit_load_state(stream, address >> 2, 1, 0);