mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
winsys/radeon: fix CMASK fast clear for NPOT textures with mipmapping on SI/CI
Cc: 18.2 <mesa-stable@lists.freedesktop.org> Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
This commit is contained in:
parent
a1b9a00f82
commit
d4e52281aa
1 changed files with 2 additions and 2 deletions
|
|
@ -257,8 +257,8 @@ static void si_compute_cmask(const struct radeon_info *info,
|
|||
|
||||
unsigned base_align = num_pipes * pipe_interleave_bytes;
|
||||
|
||||
unsigned width = align(config->info.width, cl_width*8);
|
||||
unsigned height = align(config->info.height, cl_height*8);
|
||||
unsigned width = align(surf->u.legacy.level[0].nblk_x, cl_width*8);
|
||||
unsigned height = align(surf->u.legacy.level[0].nblk_y, cl_height*8);
|
||||
unsigned slice_elements = (width * height) / (8*8);
|
||||
|
||||
/* Each element of CMASK is a nibble. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue