OSDN Git Service

mesa: Move the mvp_with_dp4 flag to ShaderCompilerOptions.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 18 Apr 2013 00:30:23 +0000 (17:30 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 12 May 2013 16:36:43 +0000 (09:36 -0700)
commitbbf029f7cf006d86a5dd13bf3bdd43f660ce2e51
tree88ec78b20944da94e95fa69aa2505bad9df29ad7
parentb765740a66821c4e97816a938c94740717661ba3
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 <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/r200/r200_context.c
src/mesa/drivers/dri/radeon/radeon_context.c
src/mesa/main/context.c
src/mesa/main/context.h
src/mesa/main/ffvertex_prog.c
src/mesa/main/mtypes.h
src/mesa/program/programopt.c
src/mesa/state_tracker/st_context.c