summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2017-06-18 00:27:12 -0700
committerGravatar GitHub2017-06-18 00:27:12 -0700
commit7dc72daea9603ec7329aef03259b7bafc97f9209 (patch)
treeb95f0b6bd7864f73247387f7698433d98d138885 /src
parentMerge pull request #2762 from wwylele/light-cp-tangent (diff)
parentCMake: Set MSVC flags for improved C++ standards conformance (diff)
downloadyuzu-7dc72daea9603ec7329aef03259b7bafc97f9209.tar.gz
yuzu-7dc72daea9603ec7329aef03259b7bafc97f9209.tar.xz
yuzu-7dc72daea9603ec7329aef03259b7bafc97f9209.zip
Merge pull request #2785 from yuriks/compile-flags
CMake: Set MSVC flags for improved C++ standards conformance
Diffstat (limited to '')
-rw-r--r--src/video_core/shader/shader_jit_x64_compiler.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/video_core/shader/shader_jit_x64_compiler.cpp b/src/video_core/shader/shader_jit_x64_compiler.cpp
index 5d9b6448c..42a57aab1 100644
--- a/src/video_core/shader/shader_jit_x64_compiler.cpp
+++ b/src/video_core/shader/shader_jit_x64_compiler.cpp
@@ -321,27 +321,27 @@ void JitShader::Compile_EvaluateCondition(Instruction instr) {
321 case Instruction::FlowControlType::Or: 321 case Instruction::FlowControlType::Or:
322 mov(eax, COND0); 322 mov(eax, COND0);
323 mov(ebx, COND1); 323 mov(ebx, COND1);
324 xor(eax, (instr.flow_control.refx.Value() ^ 1)); 324 xor_(eax, (instr.flow_control.refx.Value() ^ 1));
325 xor(ebx, (instr.flow_control.refy.Value() ^ 1)); 325 xor_(ebx, (instr.flow_control.refy.Value() ^ 1));
326 or (eax, ebx); 326 or_(eax, ebx);
327 break; 327 break;
328 328
329 case Instruction::FlowControlType::And: 329 case Instruction::FlowControlType::And:
330 mov(eax, COND0); 330 mov(eax, COND0);
331 mov(ebx, COND1); 331 mov(ebx, COND1);
332 xor(eax, (instr.flow_control.refx.Value() ^ 1)); 332 xor_(eax, (instr.flow_control.refx.Value() ^ 1));
333 xor(ebx, (instr.flow_control.refy.Value() ^ 1)); 333 xor_(ebx, (instr.flow_control.refy.Value() ^ 1));
334 and(eax, ebx); 334 and_(eax, ebx);
335 break; 335 break;
336 336
337 case Instruction::FlowControlType::JustX: 337 case Instruction::FlowControlType::JustX:
338 mov(eax, COND0); 338 mov(eax, COND0);
339 xor(eax, (instr.flow_control.refx.Value() ^ 1)); 339 xor_(eax, (instr.flow_control.refx.Value() ^ 1));
340 break; 340 break;
341 341
342 case Instruction::FlowControlType::JustY: 342 case Instruction::FlowControlType::JustY:
343 mov(eax, COND1); 343 mov(eax, COND1);
344 xor(eax, (instr.flow_control.refy.Value() ^ 1)); 344 xor_(eax, (instr.flow_control.refy.Value() ^ 1));
345 break; 345 break;
346 } 346 }
347} 347}
@@ -734,10 +734,10 @@ void JitShader::Compile_LOOP(Instruction instr) {
734 mov(LOOPCOUNT, dword[SETUP + offset]); 734 mov(LOOPCOUNT, dword[SETUP + offset]);
735 mov(LOOPCOUNT_REG, LOOPCOUNT); 735 mov(LOOPCOUNT_REG, LOOPCOUNT);
736 shr(LOOPCOUNT_REG, 4); 736 shr(LOOPCOUNT_REG, 4);
737 and(LOOPCOUNT_REG, 0xFF0); // Y-component is the start 737 and_(LOOPCOUNT_REG, 0xFF0); // Y-component is the start
738 mov(LOOPINC, LOOPCOUNT); 738 mov(LOOPINC, LOOPCOUNT);
739 shr(LOOPINC, 12); 739 shr(LOOPINC, 12);
740 and(LOOPINC, 0xFF0); // Z-component is the incrementer 740 and_(LOOPINC, 0xFF0); // Z-component is the incrementer
741 movzx(LOOPCOUNT, LOOPCOUNT.cvt8()); // X-component is iteration count 741 movzx(LOOPCOUNT, LOOPCOUNT.cvt8()); // X-component is iteration count
742 add(LOOPCOUNT, 1); // Iteration count is X-component + 1 742 add(LOOPCOUNT, 1); // Iteration count is X-component + 1
743 743
@@ -858,9 +858,9 @@ void JitShader::Compile(const std::array<u32, MAX_PROGRAM_CODE_LENGTH>* program_
858 mov(STATE, ABI_PARAM2); 858 mov(STATE, ABI_PARAM2);
859 859
860 // Zero address/loop registers 860 // Zero address/loop registers
861 xor(ADDROFFS_REG_0.cvt32(), ADDROFFS_REG_0.cvt32()); 861 xor_(ADDROFFS_REG_0.cvt32(), ADDROFFS_REG_0.cvt32());
862 xor(ADDROFFS_REG_1.cvt32(), ADDROFFS_REG_1.cvt32()); 862 xor_(ADDROFFS_REG_1.cvt32(), ADDROFFS_REG_1.cvt32());
863 xor(LOOPCOUNT_REG, LOOPCOUNT_REG); 863 xor_(LOOPCOUNT_REG, LOOPCOUNT_REG);
864 864
865 // Used to set a register to one 865 // Used to set a register to one
866 static const __m128 one = {1.f, 1.f, 1.f, 1.f}; 866 static const __m128 one = {1.f, 1.f, 1.f, 1.f};