From 4262e657b42c9f8a6777764041aa4e4ada2ab6b6 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 22 Jan 2022 10:49:36 -0800 Subject: [PATCH] samplerjit: Oops, forgot about 64 unpack. Just a minor codegen tweak. Always forget there are more of these than pack instructions. --- GPU/Software/SamplerX86.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/GPU/Software/SamplerX86.cpp b/GPU/Software/SamplerX86.cpp index 1c29a05af8..e7227471d0 100644 --- a/GPU/Software/SamplerX86.cpp +++ b/GPU/Software/SamplerX86.cpp @@ -1384,8 +1384,7 @@ bool SamplerJitCache::Jit_BlendQuad(const SamplerID &id, bool level1) { MOVDQA(fracMulReg, M(const10Low_)); PSUBW(fracMulReg, R(fracReg)); // Then we just shift and OR in the original frac_u. - PSLLDQ(fracReg, 8); - POR(fracMulReg, R(fracReg)); + PUNPCKLQDQ(fracMulReg, R(fracReg)); regCache_.Release(fracReg, RegCache::VEC_TEMP2); // Okay, we have 8-bits in the top and bottom rows for the color.