summaryrefslogtreecommitdiff
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorGravatar bunnei2018-06-09 02:36:33 -0400
committerGravatar bunnei2018-06-11 21:46:34 -0400
commit5f3d6c85db8e90b9ea9f113821befc8edaa4b875 (patch)
treeb6f3b5e2cdaedf6ef94be6437f67fc07054484cd /src/video_core/engines
parentMerge pull request #555 from Subv/gpu_sysregs (diff)
downloadyuzu-5f3d6c85db8e90b9ea9f113821befc8edaa4b875.tar.gz
yuzu-5f3d6c85db8e90b9ea9f113821befc8edaa4b875.tar.xz
yuzu-5f3d6c85db8e90b9ea9f113821befc8edaa4b875.zip
gl_shader_decompiler: Implement saturate for float instructions.
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/shader_bytecode.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index ec8dbd370..c158ffed2 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -213,7 +213,6 @@ union Instruction {
213 BitField<28, 8, Register> gpr28; 213 BitField<28, 8, Register> gpr28;
214 BitField<39, 8, Register> gpr39; 214 BitField<39, 8, Register> gpr39;
215 BitField<48, 16, u64> opcode; 215 BitField<48, 16, u64> opcode;
216 BitField<50, 1, u64> saturate_a;
217 216
218 union { 217 union {
219 BitField<20, 19, u64> imm20_19; 218 BitField<20, 19, u64> imm20_19;
@@ -222,7 +221,7 @@ union Instruction {
222 BitField<46, 1, u64> abs_a; 221 BitField<46, 1, u64> abs_a;
223 BitField<48, 1, u64> negate_a; 222 BitField<48, 1, u64> negate_a;
224 BitField<49, 1, u64> abs_b; 223 BitField<49, 1, u64> abs_b;
225 BitField<50, 1, u64> abs_d; 224 BitField<50, 1, u64> saturate_d;
226 BitField<56, 1, u64> negate_imm; 225 BitField<56, 1, u64> negate_imm;
227 226
228 union { 227 union {