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:
parent
b655e4aa47
commit
d254a5736b
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user