mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
samplerjit: Fix alpha for 565 in linear lookup.
This commit is contained in:
parent
2d7a7fd34e
commit
fe0b3dbd01
1 changed files with 8 additions and 1 deletions
|
@ -3087,9 +3087,16 @@ bool SamplerJitCache::Jit_Decode5650Quad(const SamplerID &id, Rasterizer::RegCac
|
|||
// Now shift and mask temp2 for swizzle.
|
||||
PSRLD(temp2Reg, 6);
|
||||
PAND(temp2Reg, M(const5650Swizzle_));
|
||||
// And then OR that in too. We're done.
|
||||
// And then OR that in too. Only alpha left now.
|
||||
POR(quadReg, R(temp2Reg));
|
||||
|
||||
if (id.useTextureAlpha) {
|
||||
// Just put a fixed FF in. Maybe we could even avoid this and act like it's FF later...
|
||||
PCMPEQD(temp2Reg, R(temp2Reg));
|
||||
PSLLD(temp2Reg, 24);
|
||||
POR(quadReg, R(temp2Reg));
|
||||
}
|
||||
|
||||
regCache_.Release(temp1Reg, RegCache::VEC_TEMP1);
|
||||
regCache_.Release(temp2Reg, RegCache::VEC_TEMP2);
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue