summaryrefslogtreecommitdiff
path: root/src/sna/kgem_debug_gen5.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2012-06-13 14:26:37 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2012-06-13 14:34:22 +0100
commit0db789e180b6b01fb8aff547879387058f52a0b9 (patch)
treedf3f1fcec2fa3322fc1c3eaf9714dae2137fc8ee /src/sna/kgem_debug_gen5.c
parent33998a7080aa7f50ba922c764c6a93fe951c5b64 (diff)
sna: Constification
Adding preserving const modifiers to decrease amount of const warnings Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem_debug_gen5.c')
-rw-r--r--src/sna/kgem_debug_gen5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sna/kgem_debug_gen5.c b/src/sna/kgem_debug_gen5.c
index 9e7360af..e23ceb1f 100644
--- a/src/sna/kgem_debug_gen5.c
+++ b/src/sna/kgem_debug_gen5.c
@@ -230,7 +230,7 @@ static void primitive_out(struct kgem *kgem, uint32_t *data)
static void
state_base_out(uint32_t *data, uint32_t offset, unsigned int index,
- char *name)
+ const char *name)
{
if (data[index] & 1)
kgem_debug_print(data, offset, index,
@@ -244,7 +244,7 @@ state_base_out(uint32_t *data, uint32_t offset, unsigned int index,
static void
state_max_out(uint32_t *data, uint32_t offset, unsigned int index,
- char *name)
+ const char *name)
{
if (data[index] == 1)
kgem_debug_print(data, offset, index,
@@ -434,7 +434,7 @@ int kgem_gen5_decode_3d(struct kgem *kgem, uint32_t offset)
uint32_t op;
unsigned int len;
int i;
- char *desc1 = NULL;
+ const char *desc1 = NULL;
len = (data[0] & 0xff) + 2;
op = (data[0] & 0xffff0000) >> 16;