Changes requested by reviewer meower

This commit is contained in:
CamilleLaVey
2026-08-22 01:07:34 -04:00
parent b22a796f4b
commit 5b1613087c
2 changed files with 4 additions and 5 deletions
@@ -212,12 +212,12 @@ private:
Kernel::KEvent* unknown_event;
// ZBC Tables
static constexpr u32 zbc_table_size = 15u;
static constexpr u32 ZBC_TABLE_SIZE = 15u;
static constexpr u32 supported_types = 2u;
std::mutex zbc_mutex{};
std::array<ZbcColorEntry, zbc_table_size> zbc_colors{};
std::array<ZbcDepthEntry, zbc_table_size> zbc_depths{};
std::array<ZbcColorEntry, ZBC_TABLE_SIZE> zbc_colors{};
std::array<ZbcDepthEntry, ZBC_TABLE_SIZE> zbc_depths{};
u32 zbc_used_color_entries{};
u32 zbc_used_depth_entries{};
};
@@ -472,8 +472,7 @@ void ConvertLegacyToGeneric(IR::Program& program, const Shader::RuntimeInfo& run
program.info.legacy_stores_mapping =
GenerateLegacyToGenericMappings(stores, unused_output_generics, {});
for (IR::Block* const block : program.post_order_blocks) {
auto it{block->begin()};
while (it != block->end()) {
for (auto it = block->begin(); it != block->end();) {
IR::Inst& inst{*it};
if (inst.GetOpcode() != IR::Opcode::SetAttribute ||
!IsLegacyAttribute(inst.Arg(0).Attribute())) {