From 3801fa65c1ebb44d93cc6c5780906e0fa0d0b676 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 5 Oct 2015 07:44:36 -0600 Subject: tgsi: add const qualifier to silence warning Trivial. --- src/gallium/auxiliary/tgsi/tgsi_scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c index 00b07c877a8..d76dddbf7d9 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.c +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c @@ -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) -- cgit v1.2.3