mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 18:20:10 +01:00
swr: [rasterizer memory] hook up stencil clears for ClearTile
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
This commit is contained in:
parent
5582610ea1
commit
2fca08e550
1 changed files with 8 additions and 5 deletions
|
|
@ -156,15 +156,18 @@ void StoreHotTileClear(
|
|||
{
|
||||
PFN_STORE_TILES_CLEAR pfnStoreTilesClear = NULL;
|
||||
|
||||
SWR_ASSERT(renderTargetIndex != SWR_ATTACHMENT_STENCIL); ///@todo Not supported yet.
|
||||
|
||||
if (renderTargetIndex != SWR_ATTACHMENT_DEPTH)
|
||||
if (renderTargetIndex == SWR_ATTACHMENT_STENCIL)
|
||||
{
|
||||
pfnStoreTilesClear = sStoreTilesClearColorTable[pDstSurface->format];
|
||||
SWR_ASSERT(pDstSurface->format == R8_UINT);
|
||||
pfnStoreTilesClear = StoreMacroTileClear<R8_UINT, R8_UINT>::StoreClear;
|
||||
}
|
||||
else if (renderTargetIndex == SWR_ATTACHMENT_DEPTH)
|
||||
{
|
||||
pfnStoreTilesClear = sStoreTilesClearDepthTable[pDstSurface->format];
|
||||
}
|
||||
else
|
||||
{
|
||||
pfnStoreTilesClear = sStoreTilesClearDepthTable[pDstSurface->format];
|
||||
pfnStoreTilesClear = sStoreTilesClearColorTable[pDstSurface->format];
|
||||
}
|
||||
|
||||
SWR_ASSERT(pfnStoreTilesClear != NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue