aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2013-09-03 22:00:47 -0400
committerRob Clark <[email protected]>2013-09-14 13:31:58 -0400
commit4712904ddc9f735365acaeec584d7f596fcf2a0b (patch)
tree6f45fed6589ce30bd8a5ca86f21fdda6745b4195 /src/gallium
parent64c134cedb8845f274b017ff9ca3c3ca4d34372b (diff)
freedreno/a3xx: fix gpu lockup in some piglit tests
The varying-out config comes from the inputs of the frag shader (so that we aren't exporting unneeded varyinges). The varyings-count should come from the frag shader as well, to avoid a discrepency in configuration and resulting gpu lockup. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/freedreno/a3xx/fd3_program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_program.c b/src/gallium/drivers/freedreno/a3xx/fd3_program.c
index c6c51b11ee2..d84bbe9c36f 100644
--- a/src/gallium/drivers/freedreno/a3xx/fd3_program.c
+++ b/src/gallium/drivers/freedreno/a3xx/fd3_program.c
@@ -273,7 +273,7 @@ fd3_program_emit(struct fd_ringbuffer *ring,
A3XX_SP_VS_CTRL_REG1_CONSTFOOTPRINT(MAX2(vsi->max_const, 0)));
OUT_RING(ring, A3XX_SP_VS_PARAM_REG_POSREGID(vp->pos_regid) |
A3XX_SP_VS_PARAM_REG_PSIZEREGID(vp->psize_regid) |
- A3XX_SP_VS_PARAM_REG_TOTALVSOUTVAR(vp->outputs_count));
+ A3XX_SP_VS_PARAM_REG_TOTALVSOUTVAR(fp->inputs_count));
assert(vp->outputs_count >= fp->inputs_count);