data_share: Emit barrier before reads

* Fixes artifacts in TLG when using NVIDIA gpus. When LDS is written and read in the same basic block, the barrier pass wont handle it properly, so insert a barrier before reads
This commit is contained in:
IndecisiveTurtle 2024-12-24 16:04:30 +02:00
parent 8f7eb2d0e9
commit 7b24b42711
2 changed files with 9 additions and 0 deletions

View file

@ -306,6 +306,7 @@ private:
const RuntimeInfo& runtime_info;
const Profile& profile;
bool opcode_missing = false;
bool emit_ds_read_barrier = false;
};
void Translate(IR::Block* block, u32 block_base, std::span<const GcnInst> inst_list, Info& info,