From: Ilia Mirkin Date: Sun, 1 Sep 2013 16:38:52 +0000 (-0400) Subject: nv30: find first unused texcoord rather than bailing if first is used X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3282697621241e646247b85327c50747416a766b;p=mesa.git nv30: find first unused texcoord rather than bailing if first is used This fixes shaders produced by supertuxkart. Cc: "9.2" Signed-off-by: Ilia Mirkin --- 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; }