mesa: more complete fix for transform_invarient glitches

Add a new flag mvp_with_dp4 in the context, and use that to switch
both ffvertex.c and programopt.c vertex transformation code to
either DP4 or MUL/MAD implementations.
This commit is contained in:
Keith Whitwell
2009-05-05 12:12:28 +01:00
parent 22b417b75c
commit 113403ef51
6 changed files with 153 additions and 11 deletions

View File

@@ -1522,4 +1522,17 @@ _mesa_Flush(void)
}
/**
* Set mvp_with_dp4 flag. If a driver has a preference for DP4 over
* MUL/MAD, or vice versa, call this function to register that.
* Otherwise we default to MUL/MAD.
*/
void
_mesa_set_mvp_with_dp4( GLcontext *ctx,
GLboolean flag )
{
ctx->mvp_with_dp4 = flag;
}
/*@}*/