Merge pull request #10976 from TellowKrinkle/StackFrames

Improve stack frames for profilers
This commit is contained in:
OatmealDome 2023-06-12 05:00:08 +02:00 committed by GitHub
commit 1a0a1e8f12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 5 deletions

View file

@ -402,6 +402,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.