panfrost: Remove padded unorm blendable formats

These are used to effectively disable dithering on the tilebuffer, but
we already disable dithering on a per-primitive basis anyway, so don't
bother.

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/10188>
This commit is contained in:
Alyssa Rosenzweig
2021-04-19 15:27:21 -04:00
committed by Marge Bot
parent fae90a7940
commit ebc07f4b2f
2 changed files with 2 additions and 5 deletions

View File

@@ -49,7 +49,6 @@
MALI_COLOR_BUFFER_INTERNAL_FORMAT_## internal, \
MALI_MFBD_COLOR_FORMAT_## writeback, \
MALI_BLEND_AU_ ## internal | (srgb ? (1 << 20) : 0), \
MALI_BLEND_PU_ ## internal | (srgb ? (1 << 20) : 0), \
}
#define BFMT(pipe, internal_and_writeback) \
@@ -699,8 +698,7 @@ unsigned
panfrost_format_to_bifrost_blend(const struct panfrost_device *dev,
enum pipe_format format)
{
mali_pixel_format pixfmt =
panfrost_blendable_formats[format].bifrost_dither;
mali_pixel_format pixfmt = panfrost_blendable_formats[format].bifrost;
if (pixfmt) {
return pixfmt | ((dev->quirks & HAS_SWIZZLES) ?

View File

@@ -201,8 +201,7 @@ panfrost_texture_offset(const struct pan_image_layout *layout,
struct pan_blendable_format {
enum mali_color_buffer_internal_format internal;
enum mali_mfbd_color_format writeback;
mali_pixel_format bifrost_dither;
mali_pixel_format bifrost_no_dither;
mali_pixel_format bifrost;
};
extern const struct pan_blendable_format panfrost_blendable_formats[PIPE_FORMAT_COUNT];