From 53a55bd751f6f89ac6c9d9eac9d3e9a8bd28c552 Mon Sep 17 00:00:00 2001 From: Subv Date: Wed, 4 Jul 2018 15:15:03 -0500 Subject: GPU: Implemented the PSETP shader instruction. It's similar to the isetp and fsetp instructions but it works on predicates instead. --- src/video_core/engines/shader_bytecode.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (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 c1226a649..95b7d46ec 100644 --- a/src/video_core/engines/shader_bytecode.h +++ b/src/video_core/engines/shader_bytecode.h @@ -328,6 +328,19 @@ union Instruction { BitField<49, 3, PredCondition> cond; } isetp; + union { + BitField<0, 3, u64> pred0; + BitField<3, 3, u64> pred3; + BitField<12, 3, u64> pred12; + BitField<15, 1, u64> neg_pred12; + BitField<24, 2, PredOperation> cond; + BitField<29, 3, u64> pred29; + BitField<32, 1, u64> neg_pred29; + BitField<39, 3, u64> pred39; + BitField<42, 1, u64> neg_pred39; + BitField<45, 2, PredOperation> op; + } psetp; + union { BitField<39, 3, u64> pred39; BitField<42, 1, u64> neg_pred; -- cgit v1.2.3