From b13fbc25b8c0b7abdac52d481abbc5ba58166aca Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Tue, 27 Aug 2019 23:39:38 -0300 Subject: shader_ir/conversion: Implement F2I F16 Ra.H1 --- src/video_core/engines/shader_bytecode.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/video_core/engines/shader_bytecode.h') diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h index aaa1acea9..35201c8be 100644 --- a/src/video_core/engines/shader_bytecode.h +++ b/src/video_core/engines/shader_bytecode.h @@ -1006,7 +1006,7 @@ union Instruction { } iset; union { - BitField<41, 2, u64> selector; // i2i and i2f only + BitField<41, 2, u64> selector; BitField<45, 1, u64> negate_a; BitField<49, 1, u64> abs_a; BitField<10, 2, Register::Size> src_size; @@ -1031,7 +1031,6 @@ union Instruction { return static_cast(rounding.Value() & rounding_mask); } } f2f; - } conversion; union { -- cgit v1.2.3 From e3534700d79aedd696f36430ea2a632506f2b1e3 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Wed, 28 Aug 2019 16:09:33 -0300 Subject: shader_ir/conversion: Split int and float selector and implement F2F H1 --- src/video_core/engines/shader_bytecode.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/video_core/engines/shader_bytecode.h') diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h index 35201c8be..747284700 100644 --- a/src/video_core/engines/shader_bytecode.h +++ b/src/video_core/engines/shader_bytecode.h @@ -1006,7 +1006,6 @@ union Instruction { } iset; union { - BitField<41, 2, u64> selector; BitField<45, 1, u64> negate_a; BitField<49, 1, u64> abs_a; BitField<10, 2, Register::Size> src_size; @@ -1031,6 +1030,14 @@ union Instruction { return static_cast(rounding.Value() & rounding_mask); } } f2f; + + union { + BitField<41, 2, u64> selector; + } int_src; + + union { + BitField<41, 1, u64> selector; + } float_src; } conversion; union { -- cgit v1.2.3