diff options
author | Kenneth Graunke <[email protected]> | 2013-04-17 17:30:23 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-05-12 09:36:43 -0700 |
commit | bbf029f7cf006d86a5dd13bf3bdd43f660ce2e51 (patch) | |
tree | 88ec78b20944da94e95fa69aa2505bad9df29ad7 /src/mesa/program/programopt.c | |
parent | b765740a66821c4e97816a938c94740717661ba3 (diff) |
mesa: Move the mvp_with_dp4 flag to ShaderCompilerOptions.
This flag essentially tells the compiler whether it prefers
dot products or multiply/adds for matrix operations. As such,
ShaderCompilerOptions seems like the right place for it.
This also lets us specify it on a per-stage basis. This patch makes all
existing users set the flag for the Vertex Shader stage only, as it's
currently only used for fixed-function vertex programs. That will
change soon, and I wanted to preserve the existing behavior.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/program/programopt.c')
-rw-r--r-- | src/mesa/program/programopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/programopt.c b/src/mesa/program/programopt.c index 14868ab1e79..6a62e1f5867 100644 --- a/src/mesa/program/programopt.c +++ b/src/mesa/program/programopt.c @@ -219,7 +219,7 @@ _mesa_insert_mvp_mad_code(struct gl_context *ctx, struct gl_vertex_program *vpro void _mesa_insert_mvp_code(struct gl_context *ctx, struct gl_vertex_program *vprog) { - if (ctx->mvp_with_dp4) + if (ctx->ShaderCompilerOptions[MESA_SHADER_VERTEX].PreferDP4) _mesa_insert_mvp_dp4_code( ctx, vprog ); else _mesa_insert_mvp_mad_code( ctx, vprog ); |