v3dv: don't reset loader data on command buffers
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 4 Mar 2020 10:12:08 +0000 (11:12 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:28 +0000 (21:21 +0000)
commit26bfbf29c2940b7ae21fb0f14a5e0f6fe7c6c369
treeb3db1393f843fbd8906f5b879eba10f2443686f8
parent9b4a1fb9d7417cc65c7a1c5979eed6b90a0b572b
v3dv: don't reset loader data on command buffers

We were clearing memory to 0 on create and reset, including the
loader data, which is not correct on reset since it would cleat
the loader dispatch table for the command buffer. We should only
clear driver data.

Also, don't use vk_zalloc for the command buffer allocation, since
we are already clearing on reset and we always reset when we begin
recording.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_cmd_buffer.c