[Mesa-dev] [PATCH] nv30: find first unused texcoord rather than bailing if first is used
Ilia Mirkin
imirkin at alum.mit.edu
Sun Sep 1 09:38:52 PDT 2013
This fixes shaders produced by supertuxkart.
Cc: "9.2" <mesa-stable at lists.freedesktop.org>
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/gallium/drivers/nv30/nvfx_fragprog.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/gallium/drivers/nv30/nvfx_fragprog.c b/src/gallium/drivers/nv30/nvfx_fragprog.c
index 1231862..a734330 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;
}
--
1.8.1.5
More information about the mesa-dev
mailing list