mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
r600: fix HTILE for NPOT textures with mipmapping
Cc: 18.1 18.2 <mesa-stable@lists.freedesktop.org>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
(cherry picked from commit da72b6296c)
This commit is contained in:
parent
aeb8b00661
commit
517c2f1e0f
1 changed files with 2 additions and 2 deletions
|
|
@ -774,8 +774,8 @@ static void r600_texture_get_htile_size(struct r600_common_screen *rscreen,
|
|||
return;
|
||||
}
|
||||
|
||||
width = align(rtex->resource.b.b.width0, cl_width * 8);
|
||||
height = align(rtex->resource.b.b.height0, cl_height * 8);
|
||||
width = align(rtex->surface.u.legacy.level[0].nblk_x, cl_width * 8);
|
||||
height = align(rtex->surface.u.legacy.level[0].nblk_y, cl_height * 8);
|
||||
|
||||
slice_elements = (width * height) / (8 * 8);
|
||||
slice_bytes = slice_elements * 4;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue