summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_program.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-01-29 11:33:42 -0800
committerEric Anholt <[email protected]>2015-01-29 11:43:33 -0800
commit2b9c3bace78aaf0728e40b4b4cf7124e6a138696 (patch)
treebe39bea09494a1ff27334958c8a9070acd294ca8 /src/gallium/drivers/vc4/vc4_program.c
parent9a3a60cb138ea9a7fb29368c8c8efe614a7d80fe (diff)
vc4: Fix point size handling when it's the first output.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_program.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c
index 9f1f01836fd..3f0de2caee1 100644
--- a/src/gallium/drivers/vc4/vc4_program.c
+++ b/src/gallium/drivers/vc4/vc4_program.c
@@ -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);