tgsi: add const qualifier to silence warning
authorBrian Paul <brianp@vmware.com>
Mon, 5 Oct 2015 13:44:36 +0000 (07:44 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 6 Oct 2015 14:51:33 +0000 (08:51 -0600)
Trivial.

src/gallium/auxiliary/tgsi/tgsi_scan.c

index 00b07c877a831b3b53f34ad116d9c41f63a2b467..d76dddbf7d94d1f8654b4c06c24ffb2ea68e2b39 100644 (file)
@@ -119,7 +119,7 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
             if (fullinst->Instruction.Opcode == TGSI_OPCODE_INTERP_CENTROID ||
                 fullinst->Instruction.Opcode == TGSI_OPCODE_INTERP_OFFSET ||
                 fullinst->Instruction.Opcode == TGSI_OPCODE_INTERP_SAMPLE) {
-               struct tgsi_full_src_register *src0 = &fullinst->Src[0];
+               const struct tgsi_full_src_register *src0 = &fullinst->Src[0];
                unsigned input;
 
                if (src0->Register.Indirect && src0->Indirect.ArrayID)