From: Tim Rowley Date: Thu, 28 Apr 2016 06:58:26 +0000 (-0600) Subject: swr: [rasterizer memory] Add missing store tiles function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc084e6b3da136c4e499b3d7df571a084e400203;p=mesa.git swr: [rasterizer memory] Add missing store tiles function Storing color hot tile to 8bit w-major stencil format. Reviewed-by: Bruce Cherniak --- diff --git a/src/gallium/drivers/swr/rasterizer/memory/StoreTile.cpp b/src/gallium/drivers/swr/rasterizer/memory/StoreTile.cpp index 706b033d460..2ab29362a52 100644 --- a/src/gallium/drivers/swr/rasterizer/memory/StoreTile.cpp +++ b/src/gallium/drivers/swr/rasterizer/memory/StoreTile.cpp @@ -1523,7 +1523,7 @@ void StoreHotTile( PFN_STORE_TILES pfnStoreTiles = nullptr; - if ((renderTargetIndex <= SWR_ATTACHMENT_COLOR7) && (pDstSurface->tileMode != SWR_TILE_MODE_WMAJOR)) + if (renderTargetIndex <= SWR_ATTACHMENT_COLOR7) { pfnStoreTiles = sStoreTilesTableColor[pDstSurface->tileMode][pDstSurface->format]; } @@ -1713,4 +1713,7 @@ void InitSimStoreTilesTable() InitStoreTilesTableDepth(sStoreTilesTableDepth); InitStoreTilesTableStencil(sStoreTilesTableStencil); + + // special color hot tile -> 8-bit WMAJOR + sStoreTilesTableColor[SWR_TILE_MODE_WMAJOR][R8_UINT] = StoreMacroTile, R32G32B32A32_FLOAT, R8_UINT>::Store; }