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

@ -15,7 +15,7 @@ using Tegra::Shader::Pred;
using Tegra::Shader::VideoType;
using Tegra::Shader::VmadShr;
u32 ShaderIR::DecodeVideo(BasicBlock& bb, u32 pc) {
u32 ShaderIR::DecodeVideo(BasicBlock& bb, const BasicBlock& code, u32 pc) {
const Instruction instr = {program_code[pc]};
const auto opcode = OpCode::Decode(instr);