summaryrefslogtreecommitdiff
path: root/src/amd/common/ac_surface.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>2017-05-21 23:40:54 +0200
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>2017-06-06 03:17:02 +0200
commitecdace80f4ec14b8a8a16554bcb8ed0b87144b97 (patch)
tree84b406e21fde4e88e6510b66ace1e02588a4d2f1 /src/amd/common/ac_surface.c
parent0e72dea46fd36422955a843f6a707b5a70d657d9 (diff)
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>
Diffstat (limited to 'src/amd/common/ac_surface.c')
-rw-r--r--src/amd/common/ac_surface.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c
index 51e15d07d3..877d592ab8 100644
--- a/src/amd/common/ac_surface.c
+++ b/src/amd/common/ac_surface.c
@@ -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;