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:
parent
ec2bf34d97
commit
f00e0bfd8a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue