zink: fix typo that's definitely not at all embarrassing or anything like that

and also adjust some formatting to pad out the diff and really make sure nobody
notices that anything was ever amiss here

Fixes: 787412b7eb ("zink: break out region overlap testing function into helper")

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Joshua Ashton <joshua@froggi.es>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11279>
(cherry picked from commit 2428786d64)
This commit is contained in:
Mike Blumenkrantz 2021-06-09 17:28:30 -04:00 committed by Eric Engestrom
parent 97c35a1932
commit 869a319313
2 changed files with 6 additions and 6 deletions

View file

@ -1939,7 +1939,7 @@
"description": "zink: fix typo that's definitely not at all embarrassing or anything like that",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "787412b7eb8a25f92b62fbd9e04d48b1c5fb0023"
},

View file

@ -344,12 +344,12 @@ zink_blit_region_fills(struct u_rect region, unsigned width, unsigned height)
/* is this even a thing? */
return false;
u_rect_find_intersection(&region, &intersect);
if (intersect.x0 != 0 || intersect.y0 != 0 ||
intersect.x1 != width || intersect.y1 != height)
return false;
u_rect_find_intersection(&region, &intersect);
if (intersect.x0 != 0 || intersect.y0 != 0 ||
intersect.x1 != width || intersect.y1 != height)
return false;
return false;
return true;
}
bool