From: Nicolai Hähnle Date: Thu, 7 Sep 2017 10:16:36 +0000 (+0200) Subject: ac/addrlib: relax an assertion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0ee0e086059f36b076a0a81472931e42de11bff;p=mesa.git ac/addrlib: relax an assertion This assertion is triggered on Stoney in Piglit ./bin/framebuffer-blit-levels {draw,read} stencil -auto -fbo and similar tests. It should be harmless -- just relax it until we can get internal clarification. Reviewed-by: Marek Olšák --- diff --git a/src/amd/addrlib/r800/ciaddrlib.cpp b/src/amd/addrlib/r800/ciaddrlib.cpp index 5dd52dd233e..4f67350c82f 100644 --- a/src/amd/addrlib/r800/ciaddrlib.cpp +++ b/src/amd/addrlib/r800/ciaddrlib.cpp @@ -747,7 +747,7 @@ ADDR_E_RETURNCODE CiLib::HwlComputeSurfaceInfo( SiLib::HwlComputeSurfaceInfo(&localIn, pOut); - ADDR_ASSERT((MinDepth2DThinIndex <= pOut->tileIndex) && (MaxDepth2DThinIndex >= pOut->tileIndex)); + ADDR_ASSERT(((MinDepth2DThinIndex <= pOut->tileIndex) && (MaxDepth2DThinIndex >= pOut->tileIndex)) || pOut->tileIndex == Depth1DThinIndex); depthStencil2DTileConfigMatch = DepthStencilTileCfgMatch(pIn, pOut); }