From ac4cadf538fde4919d65b92d8016c72df3d0fcf9 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Tue, 14 Jan 2020 16:32:13 +0300 Subject: [PATCH] vk: Fix word index counting for shuffle tasks --- rpcs3/Emu/RSX/VK/VKCompute.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/VK/VKCompute.h b/rpcs3/Emu/RSX/VK/VKCompute.h index 0607750dc1..f116472919 100644 --- a/rpcs3/Emu/RSX/VK/VKCompute.h +++ b/rpcs3/Emu/RSX/VK/VKCompute.h @@ -280,7 +280,8 @@ namespace vk "void main()\n" "{\n" " uint invocations_x = (gl_NumWorkGroups.x * gl_WorkGroupSize.x);" - " uint index = (gl_GlobalInvocationID.y * invocations_x) + gl_GlobalInvocationID.x;\n" + " uint invocation_id = (gl_GlobalInvocationID.y * invocations_x) + gl_GlobalInvocationID.x;\n" + " uint index = invocation_id * KERNEL_SIZE;\n" " uint value;\n" " %vars" "\n";