i965/vs: Set the PreferDP4 shader compiler option.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 18 Apr 2013 00:30:24 +0000 (17:30 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 12 May 2013 16:36:44 +0000 (09:36 -0700)
commit72a0b7a43531eb5e5cc4355941957864f86dd719
tree72fa078e491fa1905cbc6712d6a29f1c985ed007
parentbbf029f7cf006d86a5dd13bf3bdd43f660ce2e51
i965/vs: Set the PreferDP4 shader compiler option.

Doing matrix multiplies with DP4s is fewer instructions than MUL/ADD,
especially since we don't support MAD in the vertex shader.

Not observed to improve performance in any fixed function applications,
but is useful for the next patch.

I've left this unset for the fragment shader because the scalar backend
can't use DP4 and does have MAD support.

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/i965/brw_context.c