gallium: Add util_blend_factor_uses_dest helper
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 18 Aug 2020 21:28:38 +0000 (17:28 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 24 Aug 2020 11:42:34 +0000 (11:42 +0000)
commite05930511b7d3dafa36cc8d2dca51767edeff3b9
treed54bc907ef08ef812b5f70c7771cda7320307477
parent48a910d1f9344ed46822b9a969c200e606613cf3
gallium: Add util_blend_factor_uses_dest helper

Drivers may be able to optimize cases where blending is enabled but the
destination colour is not used. This helps detect that case.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6407>
src/gallium/auxiliary/util/u_blend.h