summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-05-21 23:40:54 +0200
committerBas Nieuwenhuizen <[email protected]>2017-06-06 03:17:02 +0200
commitecdace80f4ec14b8a8a16554bcb8ed0b87144b97 (patch)
tree84b406e21fde4e88e6510b66ace1e02588a4d2f1 /src/amd
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 <[email protected]> Reviewed-by: Dave Airlied <[email protected]>
Diffstat (limited to 'src/amd')
-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 51e15d07d3c..877d592ab81 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;