mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
iris: Fix partial fast clear checks to account for miplevel.
We enabled fast clears at level > 0, but didn't minify the dimensions when comparing the box size, so we always thought it was a partial clear and as a result never actually enabled any. This eliminates some slow clears in Civilization VI, but they are mostly during initialization and not the main rendering. Thanks to Dan Walsh for noticing we had too many slow clears. Fixes:393f659ed8("iris: Enable fast clears on other miplevels and layers than 0.") Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com> (cherry picked from commit30b9ed92ea)
This commit is contained in:
parent
753ea83477
commit
da03ddf677
1 changed files with 2 additions and 2 deletions
|
|
@ -80,8 +80,8 @@ can_fast_clear_color(struct iris_context *ice,
|
|||
|
||||
/* Check for partial clear */
|
||||
if (box->x > 0 || box->y > 0 ||
|
||||
box->width < p_res->width0 ||
|
||||
box->height < p_res->height0) {
|
||||
box->width < minify(p_res->width0, level) ||
|
||||
box->height < minify(p_res->height0, level)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue