1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 04:02:42 +01:00

Fix bug with vector arg alignment in BIND_FUNC and callbacks.

This commit is contained in:
Nekotekina 2020-12-18 14:28:57 +03:00
parent b655e4aa47
commit d254a5736b
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ namespace ppu_cb_detail
is_context ? ARG_CONTEXT :
ARG_UNKNOWN;
const u32 g = g_count + (is_general || is_float ? 1 : is_vector ? ::align(g_count, 2) + 2 : 0);
const u32 g = g_count + (is_general || is_float ? 1 : is_vector ? (g_count & 1) + 2 : 0);
const u32 f = f_count + is_float;
const u32 v = v_count + is_vector;

View File

@ -198,7 +198,7 @@ namespace ppu_func_detail
is_variadic ? ARG_VARIADIC :
ARG_UNKNOWN;
const u32 g = g_count + (is_general || is_float ? 1 : is_vector ? ::align(g_count, 2) + 2 : 0);
const u32 g = g_count + (is_general || is_float ? 1 : is_vector ? (g_count & 1) + 2 : 0);
const u32 f = f_count + is_float;
const u32 v = v_count + is_vector;