anv: fix helper usage for CmdUpdateBuffer()

We created a new helper for things that don't need to be indexed from
the dynamic state pool. This allocation got missed.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 82d772fa9b ("anv: create new helper for small allocations")
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27966>
This commit is contained in:
Lionel Landwerlin 2024-03-04 16:43:21 +02:00 committed by Marge Bot
parent f9acfeeb59
commit f3b0330fbc

View file

@ -1051,9 +1051,9 @@ void anv_CmdUpdateBuffer(
const uint32_t copy_size = MIN2(dataSize, max_update_size);
struct anv_state tmp_data =
anv_cmd_buffer_alloc_dynamic_state(cmd_buffer, copy_size, 64);
anv_cmd_buffer_alloc_temporary_state(cmd_buffer, copy_size, 64);
struct anv_address tmp_addr =
anv_cmd_buffer_dynamic_state_address(cmd_buffer, tmp_data);
anv_cmd_buffer_temporary_state_address(cmd_buffer, tmp_data);
memcpy(tmp_data.map, pData, copy_size);