mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 00:30:11 +01:00
llvmpipe: Don't align values already aligned
This commit is contained in:
parent
095e99ddf6
commit
dc544d87a2
1 changed files with 2 additions and 2 deletions
|
|
@ -184,8 +184,8 @@ llvmpipe_displaytarget_layout(struct llvmpipe_screen *screen,
|
|||
*/
|
||||
const unsigned width = align(lpr->base.width0, TILE_SIZE);
|
||||
const unsigned height = align(lpr->base.height0, TILE_SIZE);
|
||||
const unsigned width_t = align(width, TILE_SIZE) / TILE_SIZE;
|
||||
const unsigned height_t = align(height, TILE_SIZE) / TILE_SIZE;
|
||||
const unsigned width_t = width / TILE_SIZE;
|
||||
const unsigned height_t = height / TILE_SIZE;
|
||||
|
||||
lpr->tiles_per_row[0] = width_t;
|
||||
lpr->tiles_per_image[0] = width_t * height_t;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue