debugging / fixes

This commit is contained in:
Ryan Fleury
2025-09-30 14:18:11 -07:00
parent 4964a94cd3
commit 5b00aaadaf
2 changed files with 8 additions and 3 deletions
+7 -3
View File
@@ -340,13 +340,17 @@ ac_async_tick(void)
AC_Request *r = &task->wide[idx]; AC_Request *r = &task->wide[idx];
// rjf: any new higher priority tasks? -> cancel // rjf: any new higher priority tasks? -> cancel
if(task_idx == 1 && idx != 0) MutexScope(ac_shared->req_batches[0].mutex) if(lane_idx() == 0)
{ {
if(ac_shared->req_batches[0].wide_count != 0 || ac_shared->req_batches[0].thin_count != 0) if(task_idx == 1 && idx != 0) MutexScope(ac_shared->req_batches[0].mutex)
{ {
ins_atomic_u64_eval_assign(cancelled_ptr, 1); if(ac_shared->req_batches[0].wide_count != 0 || ac_shared->req_batches[0].thin_count != 0)
{
ins_atomic_u64_eval_assign(cancelled_ptr, 1);
}
} }
} }
lane_sync();
// rjf: cancelled? -> exit // rjf: cancelled? -> exit
if(ins_atomic_u64_eval(cancelled_ptr)) if(ins_atomic_u64_eval(cancelled_ptr))
+1
View File
@@ -1401,6 +1401,7 @@ di2_match_artifact_create(String8 key, B32 *cancel_signal, B32 *retry_out)
artifact.u64[3] = match.idx; artifact.u64[3] = match.idx;
} }
lane_sync();
scratch_end(scratch); scratch_end(scratch);
return artifact; return artifact;
} }