Module: Mesa Branch: master Commit: 481df8032ba487cbbb48d0f352e143ebfe6afa3e URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=481df8032ba487cbbb48d0f352e143ebfe6afa3e
Author: Nicolai Hähnle <[email protected]> Date: Thu Sep 7 13:20:25 2017 +0200 ac/surface: sanity-check that we got a TC-compatible HTILE if requested Reviewed-by: Marek Olšák <[email protected]> --- src/amd/common/ac_surface.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c index c6ff57362f..43f082e27e 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) _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
