pan/mdg: Add support for multi sample iteration writeout
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 8 Dec 2020 10:38:50 +0000 (11:38 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 9 Dec 2020 16:29:25 +0000 (16:29 +0000)
commite27052281aa97f17df5b221337b1c5f3e7464b61
treedd15bd942d8c1b859cc4bfd3bf46fc5f5c142ecf
parent29f938a0ece889cd3236fca7e008bf0031de4be2
pan/mdg: Add support for multi sample iteration writeout

Some MSAA+fmt combination require writeout to be split. Right now, it
only impacts blend shaders since we only support MSAA 4x, and the only
formats that could exceed the 128bit/pixel limit in MSAA 4x are
not supported by the fixed-function blend unit. We thus rely on the
blend shader to split things properly. Things will change once we add
MSAA 8x/16x to the mix, since even the blendable formats will exceed
the 128b/pixel limit in that case.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7984>
src/panfrost/midgard/compiler.h
src/panfrost/midgard/midgard_compile.c
src/panfrost/util/pan_ir.h