SWDEV-272496 - Disable notification for the previous notify

Direct disaptch doesn't insert extra barriers for Markers if
AQL barrier was the last issued command already.

Change-Id: I00fbc658547d83dd3ee64ec391ed50e5f8a08e30
이 커밋은 다음에 포함됨:
German Andryeyev가 2021-02-23 17:04:59 -05:00를 커밋했습니다
1 부모 54a7170e40
커밋 0587fb7450
1 파일이 변경됨
+4 -1
+4 -1
파일 보기
@@ -220,7 +220,10 @@ bool Event::awaitCompletion() {
Command* Event::notifyCmdQueue(bool retain) {
HostQueue* queue = command().queue();
if ((status() > CL_COMPLETE) && (NULL != queue) && !notified_.test_and_set()) {
if ((status() > CL_COMPLETE) &&
// Don't need to send notify for notifications, which have 0 type
(command().type() != 0) &&
(nullptr != queue) && !notified_.test_and_set()) {
// Make sure the queue is draining the enqueued commands.
amd::Command* internalCommand = new amd::Marker(*queue, false, nullWaitList, this);
if (internalCommand == NULL) {