mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
vk: Align write length when pre-filling buffers with constant patterns
This commit is contained in:
parent
c55a889c23
commit
b960ce1426
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ namespace vk
|
|||
const auto s_offset = utils::align<u32>(z_offset + in_depth_size, 256);
|
||||
|
||||
// Zero out the stencil block
|
||||
vkCmdFillBuffer(cmd, src->value, s_offset, in_stencil_size, 0);
|
||||
vkCmdFillBuffer(cmd, src->value, s_offset, utils::align(in_stencil_size, 4), 0);
|
||||
|
||||
vk::insert_buffer_memory_barrier(cmd, src->value, s_offset, in_stencil_size,
|
||||
VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT,
|
||||
|
|
Loading…
Add table
Reference in a new issue