mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 01:48:50 +08:00
- It could happen that 2 threads try to update the same event within tree - First thread starts to submit command, it releases cmdToSubmit - Second thread doesn't see the command and follows - Second thread thinks that it submitted the command so it follows to subsequent steps which are child events notification - We end up with corrupted enqueue sequence as child may submit prior to parent. - With this change each submit step is synchronized basing on task count - When second thread enters submit command without task count being set it wait for first thread to properly set it. Change-Id: Ic2ddaea17f9af8cab6781320edae2c268dd0b189 Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
25 KiB
25 KiB