From: Tim Rowley Date: Fri, 19 Feb 2016 01:00:30 +0000 (-0600) Subject: swr: [rasterizer] switch assert uses to SWR_ASSERT X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd0f9eed8cda45ed1373abebad7dd2398a16e9a7;p=mesa.git swr: [rasterizer] switch assert uses to SWR_ASSERT --- 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]; }