pan/mdg: Do per-sample framebuffer loads
authorIcecream95 <ixn@keemail.me>
Thu, 16 Jul 2020 02:16:11 +0000 (14:16 +1200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Jul 2020 14:34:47 +0000 (14:34 +0000)
commitc20d166b4ecbde8c5dcf7fbbeb7860c6be859a69
tree989b4ec5feb6f18f46e3b48f0c7fe96b48c974f0
parent25747cea67fed6c9e1457130ff421bfac6a8c959
pan/mdg: Do per-sample framebuffer loads

EXT_shader_framebuffer_fetch requires the fetched value to be per-sample, so we
need to load the sample id when in a fragment shader.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5930>
src/compiler/nir/nir_intrinsics.py
src/panfrost/midgard/midgard_compile.c
src/panfrost/util/pan_lower_framebuffer.c