Skip to content

Commit

Permalink
fix alloc size.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansKristian-Work committed Nov 21, 2023
1 parent ab9c976 commit 0d268ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/vkd3d/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -5972,8 +5972,8 @@ static void d3d12_command_list_update_descriptor_buffers(struct d3d12_command_li

d3d12_command_allocator_allocate_scratch_memory(list->allocator,
VKD3D_SCRATCH_POOL_KIND_UNIFORM_UPLOAD,
VKD3D_DESCRIPTOR_COPY_BATCH_NUM_COPIES, 64,
~0u, &batch->host_buffer);
VKD3D_DESCRIPTOR_COPY_BATCH_NUM_COPIES * sizeof(struct d3d12_command_list_descriptor_copy_word),
64, ~0u, &batch->host_buffer);

batch->descriptor_buffer_offset = 0;
batch->num_copies = 0;
Expand Down

0 comments on commit 0d268ee

Please sign in to comment.