mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
swr/rast: Don't transition hottile resolved->dirty during store tiles
Fixes crash when dumping render targets and RT surface has been deleted. Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
parent
5c08bfbd17
commit
bea00a7b6e
1 changed files with 4 additions and 1 deletions
|
|
@ -386,7 +386,10 @@ void ProcessStoreTileBE(DRAW_CONTEXT *pDC, uint32_t workerId, uint32_t macroTile
|
||||||
|
|
||||||
if (pHotTile->state == HOTTILE_DIRTY || pHotTile->state == HOTTILE_RESOLVED)
|
if (pHotTile->state == HOTTILE_DIRTY || pHotTile->state == HOTTILE_RESOLVED)
|
||||||
{
|
{
|
||||||
pHotTile->state = (HOTTILE_STATE)pDesc->postStoreTileState;
|
if (!(pDesc->postStoreTileState == HOTTILE_DIRTY && pHotTile->state == HOTTILE_RESOLVED))
|
||||||
|
{
|
||||||
|
pHotTile->state = (HOTTILE_STATE)pDesc->postStoreTileState;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
AR_END(BEStoreTiles, 1);
|
AR_END(BEStoreTiles, 1);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue