summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2015-10-09 23:12:14 +0200
committerRoland Scheidegger <sroland@vmware.com>2015-10-09 23:12:14 +0200
commit4c4ba5a8c32c0a58b5874bdb4b42cb12e6b1c2f5 (patch)
tree969dc0575ca66bc76ec1ff657611e35fc9f2727e /src/gallium/auxiliary
parentd695c676ea61f48f121969462ece708b739a02c0 (diff)
downloadexternal_mesa3d-4c4ba5a8c32c0a58b5874bdb4b42cb12e6b1c2f5.zip
external_mesa3d-4c4ba5a8c32c0a58b5874bdb4b42cb12e6b1c2f5.tar.gz
external_mesa3d-4c4ba5a8c32c0a58b5874bdb4b42cb12e6b1c2f5.tar.bz2
tgsi: (trivial) kill c99-ism.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_emulate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_emulate.c b/src/gallium/auxiliary/tgsi/tgsi_emulate.c
index 8190872..59d2e4c 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_emulate.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_emulate.c
@@ -102,7 +102,7 @@ passthrough_edgeflag(struct tgsi_transform_context *tctx)
static void
transform_instr(struct tgsi_transform_context *tctx,
- struct tgsi_full_instruction *inst)
+ struct tgsi_full_instruction *inst)
{
struct tgsi_emulation_context *ctx = tgsi_emulation_context(tctx);
@@ -116,7 +116,8 @@ transform_instr(struct tgsi_transform_context *tctx,
/* Clamp color outputs. */
if (ctx->flags & TGSI_EMU_CLAMP_COLOR_OUTPUTS) {
- for (int i = 0; i < inst->Instruction.NumDstRegs; i++) {
+ int i;
+ for (i = 0; i < inst->Instruction.NumDstRegs; i++) {
unsigned semantic;
if (inst->Dst[i].Register.File != TGSI_FILE_OUTPUT ||