tu: Correctly preserve old push descriptor contents
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 10 Nov 2020 15:54:07 +0000 (16:54 +0100)
committerConnor Abbott <cwabbott0@gmail.com>
Thu, 15 Apr 2021 14:05:13 +0000 (16:05 +0200)
commitcb02a48f831da750c4124ea6fa7c95861a4f4609
tree43d29cc45868de69bbd8920e009d846bcff825e2
parentc68ea960a781f1e59e906eb9c1a82330db7f2c9c
tu: Correctly preserve old push descriptor contents

We were never setting set->size, so we were always copying 0 bytes. But
as we only copy the contents when the layout and therefore the size is
the same, we don't have to take the old size into account anyway.

This fixes some VK_EXT_robustness2 tests that use push descriptors.

Fixes: 6d4f33e ("turnip: initial implementation of VK_KHR_push_descriptor")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7573>
src/freedreno/vulkan/tu_cmd_buffer.c