summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_surface.c
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-09-07 13:20:25 +0200
committerNicolai Hähnle <[email protected]>2017-09-13 18:26:59 +0200
commit481df8032ba487cbbb48d0f352e143ebfe6afa3e (patch)
tree7407f5551ba63e0ce9a7806d50e11beb5f998100 /src/amd/common/ac_surface.c
parentb2b07028684bc3998052428232edddf57ba68d7d (diff)
ac/surface: sanity-check that we got a TC-compatible HTILE if requested
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/common/ac_surface.c')
-rw-r--r--src/amd/common/ac_surface.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c
index c6ff57362f7..43f082e27e7 100644
--- a/src/amd/common/ac_surface.c
+++ b/src/amd/common/ac_surface.c
@@ -679,6 +679,12 @@ static int gfx6_compute_surface(ADDR_HANDLE addrlib,
if (level > 0)
continue;
+ /* Check that we actually got a TC-compatible HTILE if
+ * we requested it (only for level 0, since we're not
+ * supporting HTILE on higher mip levels anyway). */
+ assert(AddrSurfInfoOut.tcCompatible ||
+ !AddrSurfInfoIn.flags.tcCompatible);
+
r = gfx6_surface_settings(addrlib, info, config,
&AddrSurfInfoOut, surf);
if (r)