summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2013-09-01 12:38:52 -0400
committerChristoph Bumiller <[email protected]>2013-09-01 20:38:21 +0200
commit3282697621241e646247b85327c50747416a766b (patch)
tree17d3c0345d13d670be76d1331069a5d81167fd8e
parentdc10251d086576a007c77b7ca7854f5fe8c7e134 (diff)
nv30: find first unused texcoord rather than bailing if first is used
This fixes shaders produced by supertuxkart. Cc: "9.2" <[email protected]> Signed-off-by: Ilia Mirkin <[email protected]>
-rw-r--r--src/gallium/drivers/nv30/nvfx_fragprog.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv30/nvfx_fragprog.c b/src/gallium/drivers/nv30/nvfx_fragprog.c
index 1231862b7aa..a734330c6d9 100644
--- a/src/gallium/drivers/nv30/nvfx_fragprog.c
+++ b/src/gallium/drivers/nv30/nvfx_fragprog.c
@@ -976,9 +976,8 @@ nvfx_fragprog_assign_generic(struct nv30_context *nvfx, struct nvfx_fpc *fpc,
fpc->r_input[idx] = nvfx_reg(NVFXSR_INPUT, hw);
return TRUE;
}
- return FALSE;
}
- return TRUE;
+ return FALSE;
default:
return TRUE;
}