mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 14:08:05 +02:00
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:
parent
f9acfeeb59
commit
f3b0330fbc
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue