Mesa (master): tgsi: add const qualifier to silence warning
Brian Paul
brianp at kemper.freedesktop.org
Tue Oct 6 14:52:11 UTC 2015
Module: Mesa
Branch: master
Commit: 3801fa65c1ebb44d93cc6c5780906e0fa0d0b676
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3801fa65c1ebb44d93cc6c5780906e0fa0d0b676
Author: Brian Paul <brianp at vmware.com>
Date: Mon Oct 5 07:44:36 2015 -0600
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 00b07c8..d76dddb 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)
More information about the mesa-commit
mailing list