Fix a PIC compliance bug in the VFPU. Comment other cases properly (for easy searching).

This commit is contained in:
Henrik Rydgård 2017-08-29 11:45:12 +02:00
parent 207f903941
commit 8d0498303a
6 changed files with 22 additions and 17 deletions

View file

@ -932,7 +932,7 @@ void VertexDecoderJitCache::Jit_Color4444() {
// Spread to RGBA -> R00GB00A.
PUNPCKLBW(fpScratchReg, R(fpScratchReg));
if (RipAccessible(&color4444mask[0])) {
PAND(fpScratchReg, M(&color4444mask[0]));
PAND(fpScratchReg, M(&color4444mask[0])); // rip accessible
} else {
MOV(PTRBITS, R(tempReg1), ImmPtr(&color4444mask));
PAND(fpScratchReg, MatR(tempReg1));