Module: Mesa
Branch: main
Commit: a9f058d614929c7e65d4f8b839bd2b443729c25d
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a9f058d614929c7e65d4f8b839bd2b443729c25d

Author: Yiwei Zhang <[email protected]>
Date:   Thu Jul  6 15:55:46 2023 -0700

venus: fix a cmd builder render_pass state leak across reset

Cc: mesa-stable
Signed-off-by: Yiwei Zhang <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24103>

---

 src/virtio/vulkan/vn_command_buffer.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/virtio/vulkan/vn_command_buffer.c 
b/src/virtio/vulkan/vn_command_buffer.c
index f29c9162adc..fefa8445256 100644
--- a/src/virtio/vulkan/vn_command_buffer.c
+++ b/src/virtio/vulkan/vn_command_buffer.c
@@ -751,6 +751,8 @@ static void
 vn_cmd_reset(struct vn_command_buffer *cmd)
 {
    vn_cs_encoder_reset(&cmd->cs);
+
+   cmd->builder.render_pass = NULL;
    if (cmd->builder.present_src_images) {
       vk_free(&cmd->pool->allocator, cmd->builder.present_src_images);
       cmd->builder.present_src_images = NULL;

Reply via email to