[Mesa-dev] [PATCH v2 01/17] etnaviv: Const-correctness etnaviv_emit.h
Wladimir J. van der Laan
laanwj at gmail.com
Sat Nov 18 09:44:24 UTC 2017
The relocation structure is never changed by submitting it.
Signed-off-by: Wladimir J. van der Laan <laanwj at gmail.com>
Reviewed-by: Philipp Zabel <p.zabel at pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner at gmail.com>
---
src/gallium/drivers/etnaviv/etnaviv_emit.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Unchanged since v1.
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);
--
2.7.4
More information about the mesa-dev
mailing list