mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 15:50:32 +01:00
translate_sse: try to fix Win64
Not sure whether it works now (it is still disabled).
This commit is contained in:
parent
18f207310b
commit
c54dea66fd
1 changed files with 2 additions and 1 deletions
|
|
@ -2105,8 +2105,9 @@ struct x86_reg x86_fn_arg( struct x86_function *p,
|
|||
case 4:
|
||||
return x86_make_reg(file_REG32, reg_R9);
|
||||
default:
|
||||
/* Win64 allocates stack slots as if it pushed the first 4 arguments too */
|
||||
return x86_make_disp(x86_make_reg(file_REG32, reg_SP),
|
||||
p->stack_offset + (arg - 4) * 8); /* ??? */
|
||||
p->stack_offset + arg * 8);
|
||||
}
|
||||
case X86_64_STD_ABI:
|
||||
switch(arg)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue