diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-06-13 14:26:37 +0200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-06-13 14:34:22 +0100 |
commit | 0db789e180b6b01fb8aff547879387058f52a0b9 (patch) | |
tree | df3f1fcec2fa3322fc1c3eaf9714dae2137fc8ee /src/sna/kgem_debug_gen2.c | |
parent | 33998a7080aa7f50ba922c764c6a93fe951c5b64 (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_gen2.c')
-rw-r--r-- | src/sna/kgem_debug_gen2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/kgem_debug_gen2.c b/src/sna/kgem_debug_gen2.c index e00cd814..09f3873b 100644 --- a/src/sna/kgem_debug_gen2.c +++ b/src/sna/kgem_debug_gen2.c @@ -245,14 +245,14 @@ decode_3d_1d(struct kgem *kgem, uint32_t offset) { uint32_t *data = kgem->batch + offset; unsigned int len, i, idx, word, map; - char *format, *zformat, *type; + const char *format, *zformat, *type; uint32_t opcode; static const struct { uint32_t opcode; int min_len; int max_len; - char *name; + const char *name; } opcodes_3d_1d[] = { { 0x86, 4, 4, "3DSTATE_CHROMA_KEY" }, { 0x88, 2, 2, "3DSTATE_CONSTANT_BLEND_COLOR" }, |