diff options
author | Andre Maasikas <[email protected]> | 2009-10-23 14:25:09 +0300 |
---|---|---|
committer | Andre Maasikas <[email protected]> | 2009-10-23 17:16:23 +0300 |
commit | 738b394769bb95036635f7a00a1ef08890c5be63 (patch) | |
tree | 463310f43ad4eac2e3238a1f3a672b0f7416f0e0 /src | |
parent | da253319f9e5d37d9c55b975ef9328545a3ac9b4 (diff) |
r600: for position invariant programs reading vert_pos is not always known at this point
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/r600/r700_vertprog.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) |