mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-12-01 11:20:20 +01:00
Changes requested by reviewer meower
This commit is contained in:
parent
b22a796f4b
commit
5b1613087c
2 changed files with 4 additions and 5 deletions
|
|
@ -212,12 +212,12 @@ private:
|
||||||
Kernel::KEvent* unknown_event;
|
Kernel::KEvent* unknown_event;
|
||||||
|
|
||||||
// ZBC Tables
|
// ZBC Tables
|
||||||
static constexpr u32 zbc_table_size = 15u;
|
static constexpr u32 ZBC_TABLE_SIZE = 15u;
|
||||||
static constexpr u32 supported_types = 2u;
|
static constexpr u32 supported_types = 2u;
|
||||||
|
|
||||||
std::mutex zbc_mutex{};
|
std::mutex zbc_mutex{};
|
||||||
std::array<ZbcColorEntry, zbc_table_size> zbc_colors{};
|
std::array<ZbcColorEntry, ZBC_TABLE_SIZE> zbc_colors{};
|
||||||
std::array<ZbcDepthEntry, zbc_table_size> zbc_depths{};
|
std::array<ZbcDepthEntry, ZBC_TABLE_SIZE> zbc_depths{};
|
||||||
u32 zbc_used_color_entries{};
|
u32 zbc_used_color_entries{};
|
||||||
u32 zbc_used_depth_entries{};
|
u32 zbc_used_depth_entries{};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -472,8 +472,7 @@ void ConvertLegacyToGeneric(IR::Program& program, const Shader::RuntimeInfo& run
|
||||||
program.info.legacy_stores_mapping =
|
program.info.legacy_stores_mapping =
|
||||||
GenerateLegacyToGenericMappings(stores, unused_output_generics, {});
|
GenerateLegacyToGenericMappings(stores, unused_output_generics, {});
|
||||||
for (IR::Block* const block : program.post_order_blocks) {
|
for (IR::Block* const block : program.post_order_blocks) {
|
||||||
auto it{block->begin()};
|
for (auto it = block->begin(); it != block->end();) {
|
||||||
while (it != block->end()) {
|
|
||||||
IR::Inst& inst{*it};
|
IR::Inst& inst{*it};
|
||||||
if (inst.GetOpcode() != IR::Opcode::SetAttribute ||
|
if (inst.GetOpcode() != IR::Opcode::SetAttribute ||
|
||||||
!IsLegacyAttribute(inst.Arg(0).Attribute())) {
|
!IsLegacyAttribute(inst.Arg(0).Attribute())) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue