mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02: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;
|
PFN_STORE_TILES_CLEAR pfnStoreTilesClear = NULL;
|
||||||
|
|
||||||
SWR_ASSERT(renderTargetIndex != SWR_ATTACHMENT_STENCIL); ///@todo Not supported yet.
|
if (renderTargetIndex == SWR_ATTACHMENT_STENCIL)
|
||||||
|
|
||||||
if (renderTargetIndex != SWR_ATTACHMENT_DEPTH)
|
|
||||||
{
|
{
|
||||||
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
|
else
|
||||||
{
|
{
|
||||||
pfnStoreTilesClear = sStoreTilesClearDepthTable[pDstSurface->format];
|
pfnStoreTilesClear = sStoreTilesClearColorTable[pDstSurface->format];
|
||||||
}
|
}
|
||||||
|
|
||||||
SWR_ASSERT(pfnStoreTilesClear != NULL);
|
SWR_ASSERT(pfnStoreTilesClear != NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue