From: Andre Maasikas Date: Fri, 23 Oct 2009 11:25:09 +0000 (+0300) Subject: r600: for position invariant programs reading vert_pos is not always known at this... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=738b394769bb95036635f7a00a1ef08890c5be63;p=mesa.git r600: for position invariant programs reading vert_pos is not always known at this point --- diff --git a/src/mesa/drivers/dri/r600/r700_vertprog.c b/src/mesa/drivers/dri/r600/r700_vertprog.c index c84b0ac0597..ffc6068bd88 100644 --- a/src/mesa/drivers/dri/r600/r700_vertprog.c +++ b/src/mesa/drivers/dri/r600/r700_vertprog.c @@ -515,6 +515,11 @@ void r700SetVertexFormat(GLcontext *ctx, const struct gl_client_array *arrays[], unsigned int unBit = mesa_vp->Base.InputsRead; context->nNumActiveAos = 0; + if (mesa_vp->IsPositionInvariant) + { + unBit |= VERT_BIT_POS; + } + while(unBit) { if(unBit & 1)