mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 03:50:13 +01:00
ac/surface: Fix HTILE for radv.
We always compute HTILE size using addrlib, even when not TC compatible. Signed-off-by: Bas Nieuwenhuizen <basni@google.com> Reviewed-by: Dave Airlied <airlied@redhat.com>
This commit is contained in:
parent
0e72dea46f
commit
ecdace80f4
1 changed files with 1 additions and 2 deletions
|
|
@ -331,10 +331,9 @@ static int gfx6_compute_level(ADDR_HANDLE addrlib,
|
|||
/* TC-compatible HTILE. */
|
||||
if (!is_stencil &&
|
||||
AddrSurfInfoIn->flags.depth &&
|
||||
AddrSurfInfoIn->flags.tcCompatible &&
|
||||
surf_level->mode == RADEON_SURF_MODE_2D &&
|
||||
level == 0) {
|
||||
AddrHtileIn->flags.tcCompatible = 1;
|
||||
AddrHtileIn->flags.tcCompatible = AddrSurfInfoIn->flags.tcCompatible;
|
||||
AddrHtileIn->pitch = AddrSurfInfoOut->pitch;
|
||||
AddrHtileIn->height = AddrSurfInfoOut->height;
|
||||
AddrHtileIn->numSlices = AddrSurfInfoOut->depth;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue