mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 19:10:21 +01:00
swr: [rasterizer] Stop setting viewport size to larger than hottile array
Guard against enquing work to invalid tiles
This commit is contained in:
parent
e374d2d24b
commit
fee56fda6f
1 changed files with 6 additions and 0 deletions
|
|
@ -243,6 +243,12 @@ void ProcessDiscardInvalidateTiles(
|
|||
macroTileEndY = (rect.bottom + macroHeight - 1) / macroHeight;
|
||||
}
|
||||
|
||||
SWR_ASSERT(macroTileEndX < KNOB_NUM_HOT_TILES_X);
|
||||
SWR_ASSERT(macroTileEndY < KNOB_NUM_HOT_TILES_Y);
|
||||
|
||||
macroTileEndX = std::min<uint32_t>(macroTileEndX, KNOB_NUM_HOT_TILES_X);
|
||||
macroTileEndY = std::min<uint32_t>(macroTileEndY, KNOB_NUM_HOT_TILES_Y);
|
||||
|
||||
// load tiles
|
||||
BE_WORK work;
|
||||
work.type = DISCARDINVALIDATETILES;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue