summaryrefslogtreecommitdiff
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorGravatar Subv2018-08-16 09:05:16 -0500
committerGravatar Subv2018-08-18 10:22:42 -0500
commit2e95ba2e9c67d16456fb9f700cfe3da837e16a73 (patch)
tree83c1c00e9a39179dd72db272c9d49bbe7cdfa5a9 /src/video_core/engines
parentMerge pull request #1075 from lioncash/include (diff)
downloadyuzu-2e95ba2e9c67d16456fb9f700cfe3da837e16a73.tar.gz
yuzu-2e95ba2e9c67d16456fb9f700cfe3da837e16a73.tar.xz
yuzu-2e95ba2e9c67d16456fb9f700cfe3da837e16a73.zip
Shaders: Corrected the 'abs' and 'neg' bit usage in the float arithmetic instructions.
We should definitely audit our shader generator for more errors like this.
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/shader_bytecode.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index 2526ebf28..f438fa809 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -283,6 +283,10 @@ union Instruction {
283 } alu; 283 } alu;
284 284
285 union { 285 union {
286 BitField<48, 1, u64> negate_b;
287 } fmul;
288
289 union {
286 BitField<48, 1, u64> is_signed; 290 BitField<48, 1, u64> is_signed;
287 } shift; 291 } shift;
288 292