shader: share direct and conditional branch classification

This commit is contained in:
nmzik committed 2026-09-10 14:11:46 +04:00
1 parent ae573f941a
commit 3902b42096
4 files changed
+26 -52

No files matched your search

@@ -717,6 +717,8 @@ Family GetInstructionFamily(uint32_t word);
// The output object must be freshly initialized.
void DecodeInstruction(std::span<const uint32_t> code, uint32_t word_index, Instruction& inst);
void DecodeProgram(std::span<const uint32_t> code, Program& program);
bool IsConditionalBranch(Opcode opcode);
bool IsDirectBranch(Opcode opcode);
void DecodeScalarSource(uint32_t code, uint32_t pc, Operand& operand);
void DecodeScalarDestination(uint32_t code, uint32_t pc, Operand& operand);