mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-28 15:03:07 +00:00
Default init labels and use initializer list for macro engine
This commit is contained in:
parent
411f5527d4
commit
eca3d16e54
|
@ -25,7 +25,7 @@ constexpr u32 MacroRegistersStart = 0xE00;
|
||||||
Maxwell3D::Maxwell3D(Core::System& system, VideoCore::RasterizerInterface& rasterizer,
|
Maxwell3D::Maxwell3D(Core::System& system, VideoCore::RasterizerInterface& rasterizer,
|
||||||
MemoryManager& memory_manager)
|
MemoryManager& memory_manager)
|
||||||
: system{system}, rasterizer{rasterizer}, memory_manager{memory_manager},
|
: system{system}, rasterizer{rasterizer}, memory_manager{memory_manager},
|
||||||
macro_engine(GetMacroEngine(*this)), upload_state{memory_manager, regs.upload} {
|
macro_engine{GetMacroEngine(*this)}, upload_state{memory_manager, regs.upload} {
|
||||||
dirty.flags.flip();
|
dirty.flags.flip();
|
||||||
InitializeRegisterDefaults();
|
InitializeRegisterDefaults();
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,7 +85,7 @@ private:
|
||||||
std::optional<Macro::Opcode> next_opcode{};
|
std::optional<Macro::Opcode> next_opcode{};
|
||||||
ProgramType program{nullptr};
|
ProgramType program{nullptr};
|
||||||
|
|
||||||
std::array<Xbyak::Label, MAX_CODE_SIZE> labels;
|
std::array<Xbyak::Label, MAX_CODE_SIZE> labels{};
|
||||||
std::array<Xbyak::Label, MAX_CODE_SIZE> delay_skip{};
|
std::array<Xbyak::Label, MAX_CODE_SIZE> delay_skip{};
|
||||||
Xbyak::Label end_of_code{};
|
Xbyak::Label end_of_code{};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue