Skip to content
Snippets Groups Projects
Commit 5a478322 authored by bunnei's avatar bunnei
Browse files

shader_bytecode: Add SubOp decoding.

parent 50023bda
No related branches found
No related tags found
No related merge requests found
......@@ -265,6 +265,15 @@ enum class Pred : u64 {
NeverExecute = 0xf,
};
enum class SubOp : u64 {
Cos = 0x0,
Sin = 0x1,
Ex2 = 0x2,
Lg2 = 0x3,
Rcp = 0x4,
Rsq = 0x5,
};
#pragma pack(1)
union Instruction {
Instruction& operator=(const Instruction& instr) {
......@@ -276,6 +285,7 @@ union Instruction {
BitField<0, 8, Register> gpr1;
BitField<8, 8, Register> gpr2;
BitField<16, 4, Pred> pred;
BitField<20, 7, SubOp> sub_op;
BitField<39, 8, Register> gpr3;
BitField<45, 1, u64> nb;
BitField<46, 1, u64> aa;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment