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 <robclark@freedesktop.org>
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);