Common:X64ABI: Make proper stack frames

This commit is contained in:
TellowKrinkle
2022-06-24 23:08:18 -05:00
parent b5da4e9d48
commit f2a074f4f8
2 changed files with 14 additions and 2 deletions

View File

@ -404,6 +404,7 @@ void VertexLoaderX64::GenerateVertexLoader()
BitSet32 regs = {src_reg, dst_reg, scratch1, scratch2,
scratch3, remaining_reg, skipped_reg, base_reg};
regs &= ABI_ALL_CALLEE_SAVED;
regs[RBP] = true; // Give us a stack frame
ABI_PushRegistersAndAdjustStack(regs, 0);
// Backup count since we're going to count it down.