mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
radv: Fix CMASK dimensions.
Mirrors1e40f69483"ac/surface: fix CMASK fast clear for NPOT textures with mipmapping on SI/CI/VI" CC: <mesa-stable@lists.freedesktop.org> Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> (cherry picked from commit233718a199)
This commit is contained in:
parent
f58f2f6754
commit
5872b1522a
1 changed files with 2 additions and 2 deletions
|
|
@ -830,8 +830,8 @@ radv_image_get_cmask_info(struct radv_device *device,
|
|||
|
||||
unsigned base_align = num_pipes * pipe_interleave_bytes;
|
||||
|
||||
unsigned width = align(image->info.width, cl_width*8);
|
||||
unsigned height = align(image->info.height, cl_height*8);
|
||||
unsigned width = align(image->surface.u.legacy.level[0].nblk_x, cl_width*8);
|
||||
unsigned height = align(image->surface.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