nv30: find first unused texcoord rather than bailing if first is used
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 1 Sep 2013 16:38:52 +0000 (12:38 -0400)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sun, 1 Sep 2013 18:38:21 +0000 (20:38 +0200)
This fixes shaders produced by supertuxkart.

Cc: "9.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nv30/nvfx_fragprog.c

index 1231862b7aa1307f067a24b18333b14bf6024313..a734330c6d9df51c1087f17b7bab7219b2688e61 100644 (file)
@@ -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;
    }