mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-28 02:26:07 +00:00
clang-fix
This commit is contained in:
parent
188eebb92a
commit
b0b74243af
|
@ -327,7 +327,8 @@ void PS4_SYSV_ABI sched_yield() {
|
||||||
std::this_thread::yield();
|
std::this_thread::yield();
|
||||||
}
|
}
|
||||||
|
|
||||||
int PS4_SYSV_ABI posix_pthread_once(PthreadOnce* once_control, void PS4_SYSV_ABI (*init_routine)()) {
|
int PS4_SYSV_ABI posix_pthread_once(PthreadOnce* once_control,
|
||||||
|
void PS4_SYSV_ABI (*init_routine)()) {
|
||||||
for (;;) {
|
for (;;) {
|
||||||
auto state = once_control->state.load();
|
auto state = once_control->state.load();
|
||||||
if (state == PthreadOnceState::Done) {
|
if (state == PthreadOnceState::Done) {
|
||||||
|
|
|
@ -27,7 +27,8 @@ void SharedMemoryBarrierPass(IR::Program& program, const Profile& profile) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const IR::U1 cond = node.data.if_node.cond;
|
const IR::U1 cond = node.data.if_node.cond;
|
||||||
const auto insert_barrier = IR::BreadthFirstSearch(cond, [](IR::Inst* inst) -> std::optional<bool> {
|
const auto insert_barrier =
|
||||||
|
IR::BreadthFirstSearch(cond, [](IR::Inst* inst) -> std::optional<bool> {
|
||||||
if (inst->GetOpcode() == IR::Opcode::GetAttributeU32 &&
|
if (inst->GetOpcode() == IR::Opcode::GetAttributeU32 &&
|
||||||
inst->Arg(0).Attribute() == IR::Attribute::LocalInvocationId) {
|
inst->Arg(0).Attribute() == IR::Attribute::LocalInvocationId) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue