summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-08-12 23:42:13 +0200
committerbunnei <bunneidev@gmail.com>2015-08-16 00:03:26 +0200
commit0ee00861f6747f8946972a91539e857f493e9cc6 (patch)
treee0e2fca87c90f5d58d411c7a8f27fdf316162308 /src/video_core/shader
parentCommon: Move cpu_detect to x64 directory. (diff)
downloadyuzu-0ee00861f6747f8946972a91539e857f493e9cc6.tar
yuzu-0ee00861f6747f8946972a91539e857f493e9cc6.tar.gz
yuzu-0ee00861f6747f8946972a91539e857f493e9cc6.tar.bz2
yuzu-0ee00861f6747f8946972a91539e857f493e9cc6.tar.lz
yuzu-0ee00861f6747f8946972a91539e857f493e9cc6.tar.xz
yuzu-0ee00861f6747f8946972a91539e857f493e9cc6.tar.zst
yuzu-0ee00861f6747f8946972a91539e857f493e9cc6.zip
Diffstat (limited to 'src/video_core/shader')
-rw-r--r--src/video_core/shader/shader_jit_x64.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/video_core/shader/shader_jit_x64.cpp b/src/video_core/shader/shader_jit_x64.cpp
index 93e665d43..a7be433df 100644
--- a/src/video_core/shader/shader_jit_x64.cpp
+++ b/src/video_core/shader/shader_jit_x64.cpp
@@ -223,7 +223,7 @@ void JitCompiler::Compile_DestEnable(Instruction instr,X64Reg src) {
// Not all components are enabled, so mask the result when storing to the destination register...
MOVAPS(SCRATCH, MDisp(STATE, UnitState::OutputOffset(dest)));
- if (Common::cpu_info.bSSE4_1) {
+ 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);
BLENDPS(SCRATCH, R(src), mask);
} else {
@@ -291,7 +291,7 @@ void JitCompiler::Compile_DP3(Instruction instr) {
Compile_SwizzleSrc(instr, 1, instr.common.src1, SRC1);
Compile_SwizzleSrc(instr, 2, instr.common.src2, SRC2);
- if (Common::cpu_info.bSSE4_1) {
+ if (Common::GetCPUCaps().sse4_1) {
DPPS(SRC1, R(SRC2), 0x7f);
} else {
MULPS(SRC1, R(SRC2));
@@ -314,7 +314,7 @@ void JitCompiler::Compile_DP4(Instruction instr) {
Compile_SwizzleSrc(instr, 1, instr.common.src1, SRC1);
Compile_SwizzleSrc(instr, 2, instr.common.src2, SRC2);
- if (Common::cpu_info.bSSE4_1) {
+ if (Common::GetCPUCaps().sse4_1) {
DPPS(SRC1, R(SRC2), 0xff);
} else {
MULPS(SRC1, R(SRC2));
@@ -341,7 +341,7 @@ void JitCompiler::Compile_MUL(Instruction instr) {
void JitCompiler::Compile_FLR(Instruction instr) {
Compile_SwizzleSrc(instr, 1, instr.common.src1, SRC1);
- if (Common::cpu_info.bSSE4_1) {
+ if (Common::GetCPUCaps().sse4_1) {
ROUNDFLOORPS(SRC1, R(SRC1));
} else {
CVTPS2DQ(SRC1, R(SRC1));
@@ -513,7 +513,7 @@ void JitCompiler::Compile_MAD(Instruction instr) {
Compile_SwizzleSrc(instr, 3, instr.mad.src3, SRC3);
}
- if (Common::cpu_info.bFMA) {
+ if (Common::GetCPUCaps().fma) {
VFMADD213PS(SRC1, SRC2, R(SRC3));
} else {
MULPS(SRC1, R(SRC2));