summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/vc4
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2015-11-20 18:52:58 -0800
committerEric Anholt <eric@anholt.net>2015-12-11 16:57:39 -0800
commitb37189523e2edfe7f31e598218770dc640a39afa (patch)
tree488ba9f349b8a6432fc3156f6d1a585d3e70f772 /src/gallium/drivers/vc4
parent20db46c227fad1ccc23287d3c008d0ca24b49d5a (diff)
vc4: Fix point size lookup.
I think I may have regressed this in the NIR conversion. TGSI-to-NIR is putting the PSIZ in the .x channel, not .w, so we were grabbing some garbage for point size, which ended up meaning just not drawing points. Fixes glean pointAtten and pointsprite. (cherry picked from commit 81544f231ad6eba1c7eb8b89273c59eb53a25879)
Diffstat (limited to 'src/gallium/drivers/vc4')
-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 52317bd02af..197577b6c20 100644
--- a/src/gallium/drivers/vc4/vc4_program.c
+++ b/src/gallium/drivers/vc4/vc4_program.c
@@ -1171,7 +1171,7 @@ emit_point_size_write(struct vc4_compile *c)
struct qreg point_size;
if (c->output_point_size_index != -1)
- point_size = c->outputs[c->output_point_size_index + 3];
+ point_size = c->outputs[c->output_point_size_index];
else
point_size = qir_uniform_f(c, 1.0);