mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-17 19:21:30 +12:00
[Shader JIT] Add index = 3 to indexed register addressing
This commit is contained in:
parent
3f2b713c4b
commit
f538d38c98
1 changed files with 7 additions and 1 deletions
|
@ -222,6 +222,12 @@ void ShaderEmitter::loadRegister(Xmm dest, const PICAShader& shader, u32 src, u3
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case 3: {
|
||||||
|
const uintptr_t loopCounterOffset = uintptr_t(&shader.loopCounter) - uintptr_t(&shader);
|
||||||
|
mov(eax, dword[statePointer + loopCounterOffset]); // rax = loop counter
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
Helpers::panic("[ShaderJIT]: Unimplemented source index type %d", index);
|
Helpers::panic("[ShaderJIT]: Unimplemented source index type %d", index);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue