mesa: don't flag _NEW_COLOR for KHR adv.blend if prog constant doesn't change
authorMarek Olšák <marek.olsak@amd.com>
Sun, 7 Jan 2018 17:27:40 +0000 (18:27 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 2 Feb 2018 14:06:47 +0000 (15:06 +0100)
commit51d36f5e02d7083e52b5617bf44de0105c611db4
tree7b34e45497e7613d11537270ce964962ec437b42
parentdf1d5174fccc6771e24ef09e0cd77dfa377a7b6a
mesa: don't flag _NEW_COLOR for KHR adv.blend if prog constant doesn't change

This only affects drivers that set DriverFlags.NewBlend.

v2: - fix typo advanded -> advanced
    - return "enum gl_advanced_blend_mode" from
      _mesa_get_advanced_blend_sh_constant
    - don't call FLUSH_VERTICES twice

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/blend.c
src/mesa/main/blend.h
src/mesa/main/enable.c
src/mesa/program/prog_statevars.c