Skip to content

Commit b5f6cdf

Browse files
fix: Add missing field in DRM wrapper for ext semaphore
Related-To: NEO-15298 Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
1 parent 90076e0 commit b5f6cdf

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

shared/source/os_interface/linux/drm_wrappers.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ struct SyncObjHandle {
207207
uint32_t flags;
208208
int32_t fd;
209209
uint32_t pad;
210+
uint64_t point;
210211
};
211212

212213
struct SyncObjWait {
@@ -216,6 +217,7 @@ struct SyncObjWait {
216217
uint32_t flags;
217218
uint32_t firstSignaled;
218219
uint32_t pad;
220+
uint64_t deadlineNs;
219221
};
220222

221223
struct SyncObjTimelineWait {
@@ -226,6 +228,7 @@ struct SyncObjTimelineWait {
226228
uint32_t flags;
227229
uint32_t firstSignaled;
228230
uint32_t pad;
231+
uint64_t deadlineNs;
229232
};
230233

231234
struct SyncObjArray {
@@ -238,7 +241,7 @@ struct SyncObjTimelineArray {
238241
uint64_t handles;
239242
uint64_t points;
240243
uint32_t countHandles;
241-
uint32_t pad;
244+
uint32_t flags;
242245
};
243246

244247
struct PrimaryContextHandle {

shared/source/os_interface/linux/external_semaphore_linux.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ bool ExternalSemaphoreLinux::enqueueSignal(uint64_t *fenceValue) {
105105
auto ioctlHelper = drm->getIoctlHelper();
106106

107107
if (this->type == ExternalSemaphore::TimelineSemaphoreFd) {
108-
struct SyncObjTimelineArray args;
108+
struct SyncObjTimelineArray args = {};
109109
args.handles = reinterpret_cast<uintptr_t>(&this->syncHandle);
110110
args.points = reinterpret_cast<uintptr_t>(fenceValue);
111111
args.countHandles = 1u;
@@ -115,7 +115,7 @@ bool ExternalSemaphoreLinux::enqueueSignal(uint64_t *fenceValue) {
115115
return false;
116116
}
117117
} else {
118-
struct SyncObjArray args;
118+
struct SyncObjArray args = {};
119119
args.handles = reinterpret_cast<uintptr_t>(&this->syncHandle);
120120
args.countHandles = 1u;
121121

@@ -128,4 +128,4 @@ bool ExternalSemaphoreLinux::enqueueSignal(uint64_t *fenceValue) {
128128
return true;
129129
}
130130

131-
} // namespace NEO
131+
} // namespace NEO

0 commit comments

Comments
 (0)