summaryrefslogtreecommitdiff
path: root/src/sna/kgem_debug_gen4.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_gen4.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_gen4.c')
-rw-r--r--src/sna/kgem_debug_gen4.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sna/kgem_debug_gen4.c b/src/sna/kgem_debug_gen4.c
index 53c350b8..9b80dc88 100644
--- a/src/sna/kgem_debug_gen4.c
+++ b/src/sna/kgem_debug_gen4.c
@@ -256,7 +256,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,
@@ -270,7 +270,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,
@@ -460,7 +460,7 @@ int kgem_gen4_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;