mesa: optimize _UsesDualSrc blend flag setting
authorBrian Paul <brianp@vmware.com>
Wed, 14 Oct 2015 16:08:18 +0000 (10:08 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 15 Oct 2015 13:21:08 +0000 (07:21 -0600)
commitdfbd62e772d4373f4ab7553b556931085a70488a
treefc1c5a5b2c1f45134a9e43c87b619c2b1fb1c8f1
parentd21e17f48f8e155918de9420378a3b233e4ca98c
mesa: optimize _UsesDualSrc blend flag setting

For glBlendFunc and glBlendFuncSeparate(), the _UsesDualSrc flag
will be the same for all buffers, so no need to compute it N times.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/blend.c