pan/mdg: Do the pan_lower_framebuffer pass later
authorIcecream95 <ixn@keemail.me>
Mon, 6 Jul 2020 07:30:37 +0000 (19:30 +1200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Jul 2020 13:35:10 +0000 (13:35 +0000)
commit1e1eee992e8a8f83f89f82438851fc15c1765f80
tree78dc88c0f3f0f225d5973ea786c6d8321422453f
parente603248e075f54ac6bde71486082e1e15aee4ff0
pan/mdg: Do the pan_lower_framebuffer pass later

The pass is useful for EXT_shader_framebuffer_fetch, not just blend
shaders, so we should do it with the other lowering passes in
midgard_compile_shader_nir.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5755>
src/gallium/drivers/panfrost/pan_blend_shaders.c
src/panfrost/midgard/midgard_compile.c
src/panfrost/util/pan_lower_framebuffer.c
src/panfrost/util/pan_lower_framebuffer.h