gallium: add # of MRT to blend state
authorRob Clark <robdclark@chromium.org>
Thu, 16 Apr 2020 17:53:03 +0000 (10:53 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Apr 2020 04:49:52 +0000 (04:49 +0000)
commit85f84ea148474554af42ca513b9cb7c43a78a738
treea5143126169723b0eb5a3ec90a08e4bca240e21b
parentb88778e2de3a593587e20a8d4f0363a499f91455
gallium: add # of MRT to blend state

To make it possible for drivers to avoid unnecessary blend state change
for unused MRTs.  Otherwise the driver would have to manage different
blend CSOs for different potential #s of render targets.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.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/4619>
src/gallium/auxiliary/driver_trace/tr_dump_state.c
src/gallium/auxiliary/util/u_blitter.c
src/gallium/auxiliary/util/u_dump_state.c
src/gallium/docs/source/cso/blend.rst
src/gallium/include/pipe/p_state.h
src/gallium/state_trackers/nine/nine_pipe.c
src/mesa/state_tracker/st_atom_blend.c
src/mesa/state_tracker/st_cb_clear.c