aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/r600_perfcounter.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-05-03 08:40:41 +1000
committerDave Airlie <[email protected]>2017-05-04 11:52:47 +1000
commit7088b655e8828bb960f528dd33132de27c505b8f (patch)
tree5e75f4369a1970680b9b0ab99124ad61a456a0fc /src/gallium/drivers/radeon/r600_perfcounter.c
parentad282c0b9ef2d99168b68cd4bc3146f53c1ab011 (diff)
radeonsi: constify a bunch of the perfcounter structs.
This moves the structs from the data segment to the rodata segment, which seems like the more correct place for them. Reviewed-by: Nicolai Hähnle <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_perfcounter.c')
-rw-r--r--src/gallium/drivers/radeon/r600_perfcounter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_perfcounter.c b/src/gallium/drivers/radeon/r600_perfcounter.c
index 48f609bcb41..d76aa7be277 100644
--- a/src/gallium/drivers/radeon/r600_perfcounter.c
+++ b/src/gallium/drivers/radeon/r600_perfcounter.c
@@ -603,7 +603,7 @@ void r600_perfcounters_add_block(struct r600_common_screen *rscreen,
struct r600_perfcounters *pc,
const char *name, unsigned flags,
unsigned counters, unsigned selectors,
- unsigned instances, void *data)
+ unsigned instances, const void *data)
{
struct r600_perfcounter_block *block = &pc->blocks[pc->num_blocks];