vc4: Fix point size handling when it's the first output.
authorEric Anholt <eric@anholt.net>
Thu, 29 Jan 2015 19:33:42 +0000 (11:33 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 29 Jan 2015 19:43:33 +0000 (11:43 -0800)
src/gallium/drivers/vc4/vc4_program.c

index 9f1f01836fd0b573ff2298634e269a9116f15070..3f0de2caee1dc0233402cf068595d2ea9577f8b3 100644 (file)
@@ -1931,7 +1931,7 @@ emit_point_size_write(struct vc4_compile *c)
 {
         struct qreg point_size;
 
-        if (c->output_point_size_index)
+        if (c->output_point_size_index != -1)
                 point_size = c->outputs[c->output_point_size_index + 3];
         else
                 point_size = qir_uniform_f(c, 1.0);