Vulkan compute: resize max/min out buffers
Change max/min out buffers to have same size as max/min in buffers.
This commit is contained in:
parent
2abf3de665
commit
320a33842b
1 changed files with 2 additions and 4 deletions
|
@ -1706,8 +1706,7 @@ image::Bl dither::blue_noise(int width, int height, int threads,
|
||||||
|
|
||||||
if (!internal::vulkan_create_buffer(
|
if (!internal::vulkan_create_buffer(
|
||||||
device, phys_device,
|
device, phys_device,
|
||||||
((width * height + 1) / 2) *
|
width * height * sizeof(dither::internal::FloatAndIndex),
|
||||||
sizeof(dither::internal::FloatAndIndex),
|
|
||||||
VK_BUFFER_USAGE_STORAGE_BUFFER_BIT |
|
VK_BUFFER_USAGE_STORAGE_BUFFER_BIT |
|
||||||
VK_BUFFER_USAGE_TRANSFER_SRC_BIT,
|
VK_BUFFER_USAGE_TRANSFER_SRC_BIT,
|
||||||
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, min_out_buf,
|
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, min_out_buf,
|
||||||
|
@ -1728,8 +1727,7 @@ image::Bl dither::blue_noise(int width, int height, int threads,
|
||||||
|
|
||||||
if (!internal::vulkan_create_buffer(
|
if (!internal::vulkan_create_buffer(
|
||||||
device, phys_device,
|
device, phys_device,
|
||||||
((width * height + 1) / 2) *
|
width * height * sizeof(dither::internal::FloatAndIndex),
|
||||||
sizeof(dither::internal::FloatAndIndex),
|
|
||||||
VK_BUFFER_USAGE_STORAGE_BUFFER_BIT |
|
VK_BUFFER_USAGE_STORAGE_BUFFER_BIT |
|
||||||
VK_BUFFER_USAGE_TRANSFER_SRC_BIT,
|
VK_BUFFER_USAGE_TRANSFER_SRC_BIT,
|
||||||
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, max_out_buf,
|
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, max_out_buf,
|
||||||
|
|
Loading…
Reference in a new issue