From 29843003851306a1d4fe4f72bbbb857ade25d402 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Tue, 14 Jan 2020 16:40:29 +0300 Subject: [PATCH] vk: Fix invocation alignment to support non-power-of-2 alignment --- rpcs3/Emu/RSX/VK/VKCompute.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/VK/VKCompute.h b/rpcs3/Emu/RSX/VK/VKCompute.h index f116472919..8c222c71ea 100644 --- a/rpcs3/Emu/RSX/VK/VKCompute.h +++ b/rpcs3/Emu/RSX/VK/VKCompute.h @@ -351,7 +351,7 @@ namespace vk m_data_length = data_length; const auto num_bytes_per_invocation = optimal_group_size * kernel_size * 4; - const auto num_bytes_to_process = align(data_length, num_bytes_per_invocation); + const auto num_bytes_to_process = rsx::align2(data_length, num_bytes_per_invocation); const auto num_invocations = num_bytes_to_process / num_bytes_per_invocation; if ((num_bytes_to_process + data_offset) > data->size())