[Shader JIT] Add index = 3 to indexed register addressing
This commit is contained in:
@@ -222,6 +222,12 @@ void ShaderEmitter::loadRegister(Xmm dest, const PICAShader& shader, u32 src, u3
|
||||
break;
|
||||
}
|
||||
|
||||
case 3: {
|
||||
const uintptr_t loopCounterOffset = uintptr_t(&shader.loopCounter) - uintptr_t(&shader);
|
||||
mov(eax, dword[statePointer + loopCounterOffset]); // rax = loop counter
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
Helpers::panic("[ShaderJIT]: Unimplemented source index type %d", index);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user