panfrost: Use _PU for non-dithered formats
authorAlyssa Rosenzweig <alyssa@collabora.com>
Tue, 10 Aug 2021 16:58:56 +0000 (12:58 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Aug 2021 18:15:52 +0000 (18:15 +0000)
commit7eb2559198d730e78b8e73e9af224e98f93cd4f3
tree4311a92452e520be5bc07ccffd9c27df021df052
parent07607c84432eb81a2f3401f3df45e38ead063fc5
panfrost: Use _PU for non-dithered formats

This is required to disable dithering on a per-draw basis when OPAQUE
output is used (bypassing the blender which normally uses the
round_to_framebuffer_precision flag to do the same).

This functionally reverts:

   ebc07f4b2f3 ("panfrost: Remove padded unorm blendable formats")
   fae90a79404 ("panfrost: Always pick dithered tb formats")

while adding the functionality to make them useful.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12152>
src/gallium/drivers/panfrost/pan_cmdstream.c
src/panfrost/lib/pan_blend.c
src/panfrost/lib/pan_blend.h
src/panfrost/lib/pan_blitter.c
src/panfrost/lib/pan_format.c
src/panfrost/lib/pan_format.h
src/panfrost/lib/pan_util.c
src/panfrost/lib/pan_util.h
src/panfrost/vulkan/panvk_cs.c
src/panfrost/vulkan/panvk_meta.c