nvk: Stop creating a new upload BO every time
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:12:03 +0000 (20:12 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:32:01 +0000 (21:32 +0000)
commit7660e585f6cdcbb158b596f388915230f5193067
tree23df174c889015424724a258e4b68533f657977d
parent55278fe2b8ede4a930b3d08cc1e037f31006c9d9
nvk: Stop creating a new upload BO every time

We intended this optimization for the case where we're uploading more
data than we had in the previous upload BO.  If there is no previous
upload BO, we always want to set it to the new one.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/vulkan/nvk_cmd_buffer.c