mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-02 00:10:33 +01:00
swr: [rasterizer core] Guard against enquing work to invalid hot tiles
This commit is contained in:
parent
fee56fda6f
commit
c75314ec67
1 changed files with 5 additions and 0 deletions
|
|
@ -74,6 +74,11 @@ void MacroTileMgr::enqueue(uint32_t x, uint32_t y, BE_WORK *pWork)
|
|||
SWR_ASSERT(x < KNOB_NUM_HOT_TILES_X);
|
||||
SWR_ASSERT(y < KNOB_NUM_HOT_TILES_Y);
|
||||
|
||||
if ((x & ~(KNOB_NUM_HOT_TILES_X-1)) | (y & ~(KNOB_NUM_HOT_TILES_Y-1)))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
uint32_t id = TILE_ID(x, y);
|
||||
|
||||
MacroTileQueue &tile = mTiles[id];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue