mesa: Also track a remapped version of the color logic op
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 3 Jan 2018 19:26:41 +0000 (11:26 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 26 Jan 2018 03:21:46 +0000 (11:21 +0800)
commit9c1f010f3463d4e1ea488200390fa21f3db0b814
tree4710a42fecfb899a5d239cc2730d25f4720b7be8
parent5a3404d443e0c6e8e9a44d7f8dccf96c5ac18f0f
mesa: Also track a remapped version of the color logic op

With the exception of NVIDIA hardware, these are is the values that all
hardware and Gallium want.  The remapping is currently implemented in at
least 6 places.  This starts the process of consolidating to a single
place.

v2: sed --in-place -e 's/color_logic_ops/gl_logicop_mode/g' $(grep -lr
color_logic_ops src/) suggested by Brian.  Added some comments about the
selection of bit patterns for gl_logicop_mode and the GLenums.
Suggested by Nicolai.  Folded the GLenum_to_color_logicop macro into its
only users.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com> [v1]
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/main/blend.c
src/mesa/main/mtypes.h