tgsi: add const qualifier to silence warning

Trivial.
This commit is contained in:
Brian Paul 2015-10-05 07:44:36 -06:00
parent b7766a95e1
commit 3801fa65c1
1 changed files with 1 additions and 1 deletions

View 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)