iris: Make can_fast_clear_depth return constants

Make can_fast_clear_depth more consistent with can_fast_clear_color.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7762>
This commit is contained in:
Nanley Chery 2020-11-18 16:17:42 -08:00 committed by Marge Bot
parent fc06683d07
commit b12b69b04b

View file

@ -434,10 +434,14 @@ can_fast_clear_depth(struct iris_context *ice,
if (!(res->aux.has_hiz & (1 << level)))
return false;
return blorp_can_hiz_clear_depth(devinfo, &res->surf, res->aux.usage,
level, box->z, box->x, box->y,
box->x + box->width,
box->y + box->height);
if (!blorp_can_hiz_clear_depth(devinfo, &res->surf, res->aux.usage,
level, box->z, box->x, box->y,
box->x + box->width,
box->y + box->height)) {
return false;
}
return true;
}
static void