mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
vk: Fix invocation alignment to support non-power-of-2 alignment
This commit is contained in:
parent
ac4cadf538
commit
2984300385
@ -351,7 +351,7 @@ namespace vk
|
|||||||
m_data_length = data_length;
|
m_data_length = data_length;
|
||||||
|
|
||||||
const auto num_bytes_per_invocation = optimal_group_size * kernel_size * 4;
|
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;
|
const auto num_invocations = num_bytes_to_process / num_bytes_per_invocation;
|
||||||
|
|
||||||
if ((num_bytes_to_process + data_offset) > data->size())
|
if ((num_bytes_to_process + data_offset) > data->size())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user