mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
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:
parent
fc06683d07
commit
b12b69b04b
1 changed files with 8 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue