diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/vulkan/anv_meta_clear.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_meta_clear.c b/src/intel/vulkan/anv_meta_clear.c index ed4d1db9d45..fd0797f31d7 100644 --- a/src/intel/vulkan/anv_meta_clear.c +++ b/src/intel/vulkan/anv_meta_clear.c @@ -1012,6 +1012,12 @@ void anv_CmdFillBuffer( meta_clear_begin(&saved_state, cmd_buffer); + if (fillSize == VK_WHOLE_SIZE) { + fillSize = dst_buffer->size - dstOffset; + /* Make sure fillSize is a multiple of 4 */ + fillSize -= fillSize & 3; + } + VkFormat format; int bs; if ((fillSize & 15) == 0 && (dstOffset & 15) == 0) { |