clang format

This commit is contained in:
IndecisiveTurtle 2024-08-16 19:54:03 +03:00
parent e47a61dec9
commit 07169e5fef
3 changed files with 3 additions and 4 deletions

View File

@ -103,8 +103,7 @@ void CFG::EmitDivergenceLabels() {
// Sometimes compiler might insert instructions between the SAVEEXEC and the branch. // Sometimes compiler might insert instructions between the SAVEEXEC and the branch.
// Those instructions need to be wrapped in the condition as well so allow branch // Those instructions need to be wrapped in the condition as well so allow branch
// as end scope instruction. // as end scope instruction.
inst.opcode == Opcode::S_CBRANCH_EXECZ || inst.opcode == Opcode::S_CBRANCH_EXECZ || inst.opcode == Opcode::S_ANDN2_B64;
inst.opcode == Opcode::S_ANDN2_B64;
}; };
// Since we will be adding new labels, avoid iterating those as well. // Since we will be adding new labels, avoid iterating those as well.

View File

@ -436,7 +436,7 @@ void PatchBufferInstruction(IR::Block& block, IR::Inst& inst, Info& info,
.dword_offset = sharp.dword_offset, .dword_offset = sharp.dword_offset,
.length = BufferLength(buffer), .length = BufferLength(buffer),
.used_types = BufferDataType(inst, buffer.GetNumberFmt()), .used_types = BufferDataType(inst, buffer.GetNumberFmt()),
.is_storage = true || is_store || buffer.GetSize() > MaxUboSize, .is_storage = is_store || buffer.GetSize() > MaxUboSize,
.is_written = is_store, .is_written = is_store,
}); });
} }

View File

@ -114,7 +114,7 @@ bool ComputePipeline::BindResources(VideoCore::BufferCache& buffer_cache,
} }
} }
const u32 size = vsharp.GetSize(); const u32 size = vsharp.GetSize();
if (buffer.is_written && compute_key != 0xe991ee280187cbc && compute_key != 0xfefebf9f) { if (buffer.is_written) {
texture_cache.InvalidateMemory(address, size, true); texture_cache.InvalidateMemory(address, size, true);
} }
const u32 alignment = const u32 alignment =