panvk: Simplify depth clear preload condition

Easier to understand and equivalent in practice.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16950>
This commit is contained in:
Alyssa Rosenzweig 2022-06-09 13:39:37 -04:00 committed by Marge Bot
parent ec2bf34d97
commit f00e0bfd8a
1 changed files with 2 additions and 2 deletions

View File

@ -428,8 +428,8 @@ panvk_meta_clear_zs_img(struct panvk_cmd_buffer *cmdbuf,
if (util_format_has_depth(fdesc)) {
fbinfo->zs.view.zs = &view;
if (util_format_has_stencil(fdesc)) {
fbinfo->zs.preload.z = !fbinfo->zs.clear.z && fbinfo->zs.clear.s;
fbinfo->zs.preload.s = !fbinfo->zs.clear.s && fbinfo->zs.clear.z;
fbinfo->zs.preload.z = !fbinfo->zs.clear.z;
fbinfo->zs.preload.s = !fbinfo->zs.clear.s;
}
} else {
fbinfo->zs.view.s = &view;