freedreno/layout: Fix the UBWC block size for the Y plane

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6792>
This commit is contained in:
Jonathan Marek
2020-09-19 15:56:40 -04:00
committed by Marge Bot
parent e0a74c7cad
commit 8ea6f17fdf

View File

@@ -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);