Mesa (master): vc4: Fix point size handling when it's the first output.
Eric Anholt
anholt at kemper.freedesktop.org
Thu Jan 29 19:46:46 UTC 2015
Module: Mesa
Branch: master
Commit: 2b9c3bace78aaf0728e40b4b4cf7124e6a138696
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2b9c3bace78aaf0728e40b4b4cf7124e6a138696
Author: Eric Anholt <eric at anholt.net>
Date: Thu Jan 29 11:33:42 2015 -0800
vc4: Fix point size handling when it's the first output.
---
src/gallium/drivers/vc4/vc4_program.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c
index 9f1f018..3f0de2c 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);
More information about the mesa-commit
mailing list