freedreno/fdl: Handle cpp=32 and cpp=64 when getting macrotile size
These can only happen with multisampled images, which aren't supported by fdl_tiled_memcpy. However these cases can be hit by multisampled sparse textures. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32671>
This commit is contained in:
@@ -294,6 +294,14 @@ get_block_size(unsigned cpp, uint32_t *block_width,
|
||||
*block_width = 4;
|
||||
*block_height = 4;
|
||||
break;
|
||||
case 32:
|
||||
*block_width = 4;
|
||||
*block_height = 2;
|
||||
break;
|
||||
case 64:
|
||||
*block_width = 2;
|
||||
*block_height = 2;
|
||||
break;
|
||||
default:
|
||||
UNREACHABLE("unknown cpp");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user