Mesa (main): panfrost: Advertise 16x16 tiled AFBC
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu May 26 16:12:43 UTC 2022
Module: Mesa
Branch: main
Commit: 0255f554f39319e336b166e50fd0e6cef580975d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0255f554f39319e336b166e50fd0e6cef580975d
Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date: Wed May 4 16:55:52 2022 -0400
panfrost: Advertise 16x16 tiled AFBC
Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16697>
---
src/panfrost/lib/pan_layout.c | 13 +++++++++++++
src/panfrost/lib/pan_texture.h | 2 +-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/src/panfrost/lib/pan_layout.c b/src/panfrost/lib/pan_layout.c
index 4d63642d585..127ad6c7815 100644
--- a/src/panfrost/lib/pan_layout.c
+++ b/src/panfrost/lib/pan_layout.c
@@ -32,6 +32,19 @@
* enabling the YUV-like transform is typically a win where possible. */
uint64_t pan_best_modifiers[PAN_MODIFIER_COUNT] = {
+ DRM_FORMAT_MOD_ARM_AFBC(
+ AFBC_FORMAT_MOD_BLOCK_SIZE_16x16 |
+ AFBC_FORMAT_MOD_TILED |
+ AFBC_FORMAT_MOD_SC |
+ AFBC_FORMAT_MOD_SPARSE |
+ AFBC_FORMAT_MOD_YTR),
+
+ DRM_FORMAT_MOD_ARM_AFBC(
+ AFBC_FORMAT_MOD_BLOCK_SIZE_16x16 |
+ AFBC_FORMAT_MOD_TILED |
+ AFBC_FORMAT_MOD_SC |
+ AFBC_FORMAT_MOD_SPARSE),
+
DRM_FORMAT_MOD_ARM_AFBC(
AFBC_FORMAT_MOD_BLOCK_SIZE_16x16 |
AFBC_FORMAT_MOD_SPARSE |
diff --git a/src/panfrost/lib/pan_texture.h b/src/panfrost/lib/pan_texture.h
index c43bd250579..f4a7716244e 100644
--- a/src/panfrost/lib/pan_texture.h
+++ b/src/panfrost/lib/pan_texture.h
@@ -44,7 +44,7 @@
extern "C" {
#endif
-#define PAN_MODIFIER_COUNT 4
+#define PAN_MODIFIER_COUNT 6
extern uint64_t pan_best_modifiers[PAN_MODIFIER_COUNT];
struct pan_image_slice_layout {
More information about the mesa-commit
mailing list