venus: use in_render_pass to skip present_src counting
authorYiwei Zhang <zzyiwei@chromium.org>
Wed, 12 Jul 2023 03:24:31 +0000 (20:24 -0700)
committerMarge Bot <emma+marge@anholt.net>
Sat, 22 Jul 2023 01:49:43 +0000 (01:49 +0000)
commit2ed4f048699b6ca065a8fc8f4c5ed009a519add7
tree576249d488ab6232cf3071d465fe719369572012
parente47da97be625854795bf5c3cffd42a0d7156cedd
venus: use in_render_pass to skip present_src counting

It's an early return also benefiting dynamic rendering. We then no
longer need to track the legacy pass from inheritance info.

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24103>
src/virtio/vulkan/vn_command_buffer.c