Browse Source
Merge pull request #1550 from FernandoS27/fmul32
Added Saturation to FMUL32I
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
8 additions and
3 deletions
-
src/video_core/engines/shader_bytecode.h
-
src/video_core/renderer_opengl/gl_shader_decompiler.cpp
|
|
|
@ -563,6 +563,10 @@ union Instruction { |
|
|
|
BitField<48, 1, u64> negate_b; |
|
|
|
} fmul; |
|
|
|
|
|
|
|
union { |
|
|
|
BitField<55, 1, u64> saturate; |
|
|
|
} fmul32; |
|
|
|
|
|
|
|
union { |
|
|
|
BitField<48, 1, u64> is_signed; |
|
|
|
} shift; |
|
|
|
|
|
|
|
@ -1460,9 +1460,10 @@ private: |
|
|
|
break; |
|
|
|
} |
|
|
|
case OpCode::Id::FMUL32_IMM: { |
|
|
|
regs.SetRegisterToFloat( |
|
|
|
instr.gpr0, 0, |
|
|
|
regs.GetRegisterAsFloat(instr.gpr8) + " * " + GetImmediate32(instr), 1, 1); |
|
|
|
regs.SetRegisterToFloat(instr.gpr0, 0, |
|
|
|
regs.GetRegisterAsFloat(instr.gpr8) + " * " + |
|
|
|
GetImmediate32(instr), |
|
|
|
1, 1, instr.fmul32.saturate); |
|
|
|
break; |
|
|
|
} |
|
|
|
case OpCode::Id::FADD32I: { |
|
|
|
|