From dd0f9eed8cda45ed1373abebad7dd2398a16e9a7 Mon Sep 17 00:00:00 2001 From: Tim Rowley Date: Thu, 18 Feb 2016 19:00:30 -0600 Subject: [PATCH] swr: [rasterizer] switch assert uses to SWR_ASSERT --- src/gallium/drivers/swr/rasterizer/core/tilemgr.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/swr/rasterizer/core/tilemgr.h b/src/gallium/drivers/swr/rasterizer/core/tilemgr.h index 9137941bad4..b5eaaab63a3 100644 --- a/src/gallium/drivers/swr/rasterizer/core/tilemgr.h +++ b/src/gallium/drivers/swr/rasterizer/core/tilemgr.h @@ -299,8 +299,8 @@ public: uint32_t x, y; MacroTileMgr::getTileIndices(macroID, x, y); - assert(x < KNOB_NUM_HOT_TILES_X); - assert(y < KNOB_NUM_HOT_TILES_Y); + SWR_ASSERT(x < KNOB_NUM_HOT_TILES_X); + SWR_ASSERT(y < KNOB_NUM_HOT_TILES_Y); HotTileSet &tile = mHotTiles[x][y]; HOTTILE& hotTile = tile.Attachment[attachment]; @@ -326,7 +326,7 @@ public: { // tile should be either uninitialized or resolved if we're deleting and switching to a // new sample count - assert((hotTile.state == HOTTILE_INVALID) || + SWR_ASSERT((hotTile.state == HOTTILE_INVALID) || (hotTile.state == HOTTILE_RESOLVED) || (hotTile.state == HOTTILE_CLEAR)); _aligned_free(hotTile.pBuffer); @@ -377,8 +377,8 @@ public: { uint32_t x, y; MacroTileMgr::getTileIndices(macroID, x, y); - assert(x < KNOB_NUM_HOT_TILES_X); - assert(y < KNOB_NUM_HOT_TILES_Y); + SWR_ASSERT(x < KNOB_NUM_HOT_TILES_X); + SWR_ASSERT(y < KNOB_NUM_HOT_TILES_Y); return mHotTiles[x][y]; } -- 2.30.2