pan/lower_framebuffer: Lower MSAA blend shaders
authorAlyssa Rosenzweig <alyssa@collabora.com>
Tue, 7 Feb 2023 04:38:12 +0000 (23:38 -0500)
committerMarge Bot <emma+marge@anholt.net>
Thu, 23 Mar 2023 23:53:46 +0000 (23:53 +0000)
commit2745daa05a243900612e1234071093da580b9a5d
tree9efdc67b8f30792c3f6ce7e9fe03c1aad6315e06
parentca2042f3592e2c292e7c2423c628ac2728925f72
pan/lower_framebuffer: Lower MSAA blend shaders

Do it explicitly in NIR rather than implicitly in the Midgard compiler. This
avoids a nasty sideband input for the render target formats and sample count,
for blend shaders on midgard only.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20906>
src/gallium/drivers/panfrost/pan_shader.c
src/panfrost/lib/pan_blend.c
src/panfrost/midgard/midgard_compile.c
src/panfrost/util/pan_ir.h
src/panfrost/util/pan_lower_framebuffer.c
src/panfrost/util/pan_lower_framebuffer.h