turnip: fix 3D path always being used for CmdBlitImage
authorJonathan Marek <jonathan@marek.ca>
Tue, 16 Jun 2020 23:07:41 +0000 (19:07 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 17 Jun 2020 08:50:42 +0000 (08:50 +0000)
This change accidentally made it into 72d7df40a5e5b50, and started causing
blit_image flakes (because of the issue fixed in the previous patch)

Fixes: 72d7df40a5e5b50 ("turnip: add layered 3D path clear for CmdClearAttachments")
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5509>

src/freedreno/vulkan/tu_clear_blit.c

index 34591443ae5dc01c3a60d108363a35c6235edde7..80f993bb73f1c08695449ee20d44267a781bd6ae 100644 (file)
@@ -1097,7 +1097,7 @@ tu6_blit_image(struct tu_cmd_buffer *cmd,
                const VkImageBlit *info,
                VkFilter filter)
 {
-   const struct blit_ops *ops = &r3d_ops;
+   const struct blit_ops *ops = &r2d_ops;
    struct tu_cs *cs = &cmd->cs;
    uint32_t layers;