shader_ir: Pass to decoder functions basic block's code

This commit is contained in:
ReinUsesLisp 2018-12-28 20:00:36 -03:00
parent 719c83a4c2
commit 1be12d5819
27 changed files with 82 additions and 81 deletions

View file

@ -12,7 +12,7 @@ namespace VideoCommon::Shader {
using Tegra::Shader::Instruction;
using Tegra::Shader::OpCode;
u32 ShaderIR::DecodeXmad(BasicBlock& bb, u32 pc) {
u32 ShaderIR::DecodeXmad(BasicBlock& bb, const BasicBlock& code, u32 pc) {
const Instruction instr = {program_code[pc]};
const auto opcode = OpCode::Decode(instr);