summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/shader_jit_x64.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-08-15 22:51:32 +0200
committerbunnei <bunneidev@gmail.com>2015-08-16 00:03:27 +0200
commitdb97090cad236eeeb0909eb1d35cbece15e1f0a5 (patch)
tree9ea9a86da4027126914e69b12c24d2849fdb2c2d /src/video_core/shader/shader_jit_x64.cpp
parentRename ARCHITECTURE_X64 definition to ARCHITECTURE_x86_64. (diff)
downloadyuzu-db97090cad236eeeb0909eb1d35cbece15e1f0a5.tar
yuzu-db97090cad236eeeb0909eb1d35cbece15e1f0a5.tar.gz
yuzu-db97090cad236eeeb0909eb1d35cbece15e1f0a5.tar.bz2
yuzu-db97090cad236eeeb0909eb1d35cbece15e1f0a5.tar.lz
yuzu-db97090cad236eeeb0909eb1d35cbece15e1f0a5.tar.xz
yuzu-db97090cad236eeeb0909eb1d35cbece15e1f0a5.tar.zst
yuzu-db97090cad236eeeb0909eb1d35cbece15e1f0a5.zip
Diffstat (limited to 'src/video_core/shader/shader_jit_x64.cpp')
-rw-r--r--src/video_core/shader/shader_jit_x64.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/video_core/shader/shader_jit_x64.cpp b/src/video_core/shader/shader_jit_x64.cpp
index a7be433df..ce47774d5 100644
--- a/src/video_core/shader/shader_jit_x64.cpp
+++ b/src/video_core/shader/shader_jit_x64.cpp
@@ -106,7 +106,7 @@ static const X64Reg COND0 = R13;
/// Result of the previous CMP instruction for the Y-component comparison
static const X64Reg COND1 = R14;
/// Pointer to the UnitState instance for the current VS unit
-static const X64Reg STATE = R15;
+static const X64Reg REGISTERS = R15;
/// SIMD scratch register
static const X64Reg SCRATCH = XMM0;
/// Loaded with the first swizzled source register, otherwise can be used as a scratch register
@@ -140,7 +140,7 @@ void JitCompiler::Compile_SwizzleSrc(Instruction instr, unsigned src_num, Source
src_ptr = UNIFORMS;
src_offset = src_reg.GetIndex() * sizeof(float24) * 4;
} else {
- src_ptr = STATE;
+ src_ptr = REGISTERS;
src_offset = UnitState::InputOffset(src_reg);
}
@@ -217,11 +217,11 @@ void JitCompiler::Compile_DestEnable(Instruction instr,X64Reg src) {
// If all components are enabled, write the result to the destination register
if (swiz.dest_mask == NO_DEST_REG_MASK) {
// Store dest back to memory
- MOVAPS(MDisp(STATE, UnitState::OutputOffset(dest)), src);
+ MOVAPS(MDisp(REGISTERS, UnitState::OutputOffset(dest)), src);
} else {
// Not all components are enabled, so mask the result when storing to the destination register...
- MOVAPS(SCRATCH, MDisp(STATE, UnitState::OutputOffset(dest)));
+ MOVAPS(SCRATCH, MDisp(REGISTERS, UnitState::OutputOffset(dest)));
if (Common::GetCPUCaps().sse4_1) {
u8 mask = ((swiz.dest_mask & 1) << 3) | ((swiz.dest_mask & 8) >> 3) | ((swiz.dest_mask & 2) << 1) | ((swiz.dest_mask & 4) >> 1);
@@ -240,7 +240,7 @@ void JitCompiler::Compile_DestEnable(Instruction instr,X64Reg src) {
}
// Store dest back to memory
- MOVAPS(MDisp(STATE, UnitState::OutputOffset(dest)), SCRATCH);
+ MOVAPS(MDisp(REGISTERS, UnitState::OutputOffset(dest)), SCRATCH);
}
}
@@ -635,7 +635,7 @@ CompiledShader* JitCompiler::Compile() {
ABI_PushAllCalleeSavedRegsAndAdjustStack();
- MOV(PTRBITS, R(STATE), R(ABI_PARAM1));
+ MOV(PTRBITS, R(REGISTERS), R(ABI_PARAM1));
MOV(PTRBITS, R(UNIFORMS), ImmPtr(&g_state.vs.uniforms));
// Zero address/loop registers