mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
fix: Add missing field in DRM wrapper for ext semaphore
Related-To: NEO-15298 Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
90076e033d
commit
b5f6cdf59b
@@ -207,6 +207,7 @@ struct SyncObjHandle {
|
||||
uint32_t flags;
|
||||
int32_t fd;
|
||||
uint32_t pad;
|
||||
uint64_t point;
|
||||
};
|
||||
|
||||
struct SyncObjWait {
|
||||
@@ -216,6 +217,7 @@ struct SyncObjWait {
|
||||
uint32_t flags;
|
||||
uint32_t firstSignaled;
|
||||
uint32_t pad;
|
||||
uint64_t deadlineNs;
|
||||
};
|
||||
|
||||
struct SyncObjTimelineWait {
|
||||
@@ -226,6 +228,7 @@ struct SyncObjTimelineWait {
|
||||
uint32_t flags;
|
||||
uint32_t firstSignaled;
|
||||
uint32_t pad;
|
||||
uint64_t deadlineNs;
|
||||
};
|
||||
|
||||
struct SyncObjArray {
|
||||
@@ -238,7 +241,7 @@ struct SyncObjTimelineArray {
|
||||
uint64_t handles;
|
||||
uint64_t points;
|
||||
uint32_t countHandles;
|
||||
uint32_t pad;
|
||||
uint32_t flags;
|
||||
};
|
||||
|
||||
struct PrimaryContextHandle {
|
||||
|
||||
@@ -105,7 +105,7 @@ bool ExternalSemaphoreLinux::enqueueSignal(uint64_t *fenceValue) {
|
||||
auto ioctlHelper = drm->getIoctlHelper();
|
||||
|
||||
if (this->type == ExternalSemaphore::TimelineSemaphoreFd) {
|
||||
struct SyncObjTimelineArray args;
|
||||
struct SyncObjTimelineArray args = {};
|
||||
args.handles = reinterpret_cast<uintptr_t>(&this->syncHandle);
|
||||
args.points = reinterpret_cast<uintptr_t>(fenceValue);
|
||||
args.countHandles = 1u;
|
||||
@@ -115,7 +115,7 @@ bool ExternalSemaphoreLinux::enqueueSignal(uint64_t *fenceValue) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
struct SyncObjArray args;
|
||||
struct SyncObjArray args = {};
|
||||
args.handles = reinterpret_cast<uintptr_t>(&this->syncHandle);
|
||||
args.countHandles = 1u;
|
||||
|
||||
@@ -128,4 +128,4 @@ bool ExternalSemaphoreLinux::enqueueSignal(uint64_t *fenceValue) {
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user