mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
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:
parent
e0a74c7cad
commit
8ea6f17fdf
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue