st/mesa: Disable blending for integer formats.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 25 Aug 2018 06:45:27 +0000 (23:45 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 29 Aug 2018 17:51:11 +0000 (10:51 -0700)
commit8fb966688bc1053a48e8ee7f7394ce030bcfd345
tree29a447bf3cc05f9dcadfa1cbf9a2ef408a5456c9
parent18e9b4791b0395e67e5ef1e622ac66515ae8baf9
st/mesa: Disable blending for integer formats.

Blending isn't valid for integer formats.  Rather than having drivers
worry about this, just disable blending in this case.  This hopefully
will increase hits in the CSO cache as well, by eliminating most of the
meaningless fields in this case.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_atom_blend.c