mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
panfrost: Simplify compute_checksum_size formula
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11123>
This commit is contained in:
parent
3525ad7c45
commit
729b8c55f4
1 changed files with 2 additions and 5 deletions
|
|
@ -516,11 +516,8 @@ panfrost_compute_checksum_size(
|
|||
unsigned width,
|
||||
unsigned height)
|
||||
{
|
||||
unsigned aligned_width = ALIGN_POT(width, CHECKSUM_TILE_WIDTH);
|
||||
unsigned aligned_height = ALIGN_POT(height, CHECKSUM_TILE_HEIGHT);
|
||||
|
||||
unsigned tile_count_x = aligned_width / CHECKSUM_TILE_WIDTH;
|
||||
unsigned tile_count_y = aligned_height / CHECKSUM_TILE_HEIGHT;
|
||||
unsigned tile_count_x = DIV_ROUND_UP(width, CHECKSUM_TILE_WIDTH);
|
||||
unsigned tile_count_y = DIV_ROUND_UP(height, CHECKSUM_TILE_HEIGHT);
|
||||
|
||||
slice->crc.stride = tile_count_x * CHECKSUM_BYTES_PER_TILE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue