Mesa (main): freedreno/layout: Fix the UBWC block size for the Y plane
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Oct 22 11:52:10 UTC 2021
Module: Mesa
Branch: main
Commit: 8ea6f17fdf939adc315b66e3ff88f83d3cc37029
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8ea6f17fdf939adc315b66e3ff88f83d3cc37029
Author: Jonathan Marek <jonathan at marek.ca>
Date: Sat Sep 19 15:56:40 2020 -0400
freedreno/layout: Fix the UBWC block size for the Y plane
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Signed-off-by: Jonathan Marek <jonathan at marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6792>
---
src/freedreno/fdl/fd6_layout.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/freedreno/fdl/fd6_layout.c b/src/freedreno/fdl/fd6_layout.c
index 70bb06b5ba3..44d062e8320 100644
--- a/src/freedreno/fdl/fd6_layout.c
+++ b/src/freedreno/fdl/fd6_layout.c
@@ -58,6 +58,10 @@ fdl6_get_ubwc_blockwidth(const struct fdl_layout *layout,
*blockwidth = 16;
*blockheight = 8;
return;
+ } else if (layout->format == PIPE_FORMAT_Y8_UNORM) {
+ *blockwidth = 32;
+ *blockheight = 8;
+ return;
}
uint32_t cpp = fdl_cpp_shift(layout);
More information about the mesa-commit
mailing list