panvk: Fix stencil clear assignment in panvk_cmd_fb_info_set_subpass()
authorBoris Brezillon <boris.brezillon@collabora.com>
Sun, 26 Sep 2021 14:12:11 +0000 (16:12 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Sep 2021 14:03:40 +0000 (14:03 +0000)
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13077>

src/panfrost/vulkan/panvk_cmd_buffer.c

index ff257ff..849746b 100644 (file)
@@ -393,7 +393,7 @@ panvk_cmd_fb_info_set_subpass(struct panvk_cmd_buffer *cmdbuf)
 
       if (util_format_has_stencil(fdesc)) {
          fbinfo->zs.clear.s = subpass->zs_attachment.clear;
-         fbinfo->zs.clear_value.stencil = clears[subpass->zs_attachment.idx].depth;
+         fbinfo->zs.clear_value.stencil = clears[subpass->zs_attachment.idx].stencil;
          if (!fbinfo->zs.view.zs)
             fbinfo->zs.view.s = &view->pview;
       }