mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
panvk: drop needless null-checks
iview can't be null here, so let's drop these checks. CID: 1596487 Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28856>
This commit is contained in:
parent
5df20cac22
commit
8456588b1f
1 changed files with 2 additions and 2 deletions
|
|
@ -1896,9 +1896,9 @@ panvk_cmd_begin_rendering_init_fbinfo(struct panvk_cmd_buffer *cmdbuf,
|
|||
|
||||
cmdbuf->state.fb.bos[cmdbuf->state.fb.bo_count++] = img->bo;
|
||||
fbinfo->zs.view.s =
|
||||
iview && &iview->pview != fbinfo->zs.view.zs ? &iview->pview : NULL;
|
||||
&iview->pview != fbinfo->zs.view.zs ? &iview->pview : NULL;
|
||||
|
||||
if (iview && att->loadOp == VK_ATTACHMENT_LOAD_OP_CLEAR) {
|
||||
if (att->loadOp == VK_ATTACHMENT_LOAD_OP_CLEAR) {
|
||||
fbinfo->zs.clear.s = true;
|
||||
fbinfo->zs.clear_value.stencil = att->clearValue.depthStencil.stencil;
|
||||
} else if (att->loadOp == VK_ATTACHMENT_LOAD_OP_LOAD) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue