Skip to content

gallium/tc: fix two race conditions

Gert Wollny requested to merge gerddie/mesa:tc-fix-races-1 into main
  • gallium/tc: protect setting tc->driver_thread with a mutex: this is only a thing in debug mode, but it is still better to silence the race condition to remove some noise when running with thread sanitizer.
  • gallium/tc: make access to tc->last_completed atomic: It is not clear to me whether the race condition has an impact on zink (or other drivers) correctness

Merge request reports