From dbb015f4270d9e43e8327f4c9bc6541ad5ea7ede Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 31 Dec 2021 12:07:28 -0800 Subject: [PATCH] samplerjit: Oops, fix Linux mipmap handling. --- GPU/Software/SamplerX86.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GPU/Software/SamplerX86.cpp b/GPU/Software/SamplerX86.cpp index e1b1708575..8d170136b1 100644 --- a/GPU/Software/SamplerX86.cpp +++ b/GPU/Software/SamplerX86.cpp @@ -280,6 +280,9 @@ LinearFunc SamplerJitCache::CompileLinear(const SamplerID &id) { // Store frac UV in the gap. stackFracUV1Offset_ = -stackArgPos_ + 16 * 4; +#else + // Use the red zone. + stackFracUV1Offset_ = -stackArgPos_ - 8; #endif // Reserve a couple regs that the nearest CALL won't use.