SWDEV-245532 - HIP - Vulkan interop semaphores
linuxpro syntax update Change-Id: I947f24f67ed59c15fe5047348b0c005e19e93544
This commit is contained in:
@@ -1618,7 +1618,7 @@ class Device : public RuntimeObject {
|
||||
virtual bool globalFreeMemory(size_t* freeMemory //!< Free memory information on a GPU device
|
||||
) const = 0;
|
||||
|
||||
virtual bool importExtSemaphore(void** extSemaphore, void* handle) = 0;
|
||||
virtual bool importExtSemaphore(void** extSemaphore, amd::Os::FileDesc handle) = 0;
|
||||
virtual void DestroyExtSemaphore(void* extSemaphore) = 0;
|
||||
/**
|
||||
* @return True if the device has its own custom host allocator to be used
|
||||
|
||||
@@ -2410,9 +2410,9 @@ bool Device::SetClockMode(const cl_set_device_clock_mode_input_amd setClockModeI
|
||||
}
|
||||
|
||||
|
||||
bool Device::importExtSemaphore(void** extSemaphore, void* handle) {
|
||||
bool Device::importExtSemaphore(void** extSemaphore, amd::Os::FileDesc handle) {
|
||||
Pal::ExternalQueueSemaphoreOpenInfo palOpenInfo = {};
|
||||
palOpenInfo.externalSemaphore = static_cast<Pal::OsExternalHandle>(reinterpret_cast<uintptr_t>(handle));
|
||||
palOpenInfo.externalSemaphore = handle;
|
||||
palOpenInfo.flags.crossProcess = false;
|
||||
palOpenInfo.flags.isReference = true;
|
||||
Pal::Result result;
|
||||
|
||||
@@ -594,7 +594,7 @@ class Device : public NullDevice {
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual bool importExtSemaphore(void** extSemaphore, void* handle);
|
||||
virtual bool importExtSemaphore(void** extSemaphore, amd::Os::FileDesc handle);
|
||||
virtual void DestroyExtSemaphore(void* extSemaphore);
|
||||
|
||||
private:
|
||||
|
||||
@@ -191,7 +191,7 @@ class NullDevice : public amd::Device {
|
||||
return !settings().enableCoarseGrainSVM_ || (memory->getContext().devices().size() > 1);
|
||||
}
|
||||
|
||||
virtual bool importExtSemaphore(void** extSemahore, void* handle) {
|
||||
virtual bool importExtSemaphore(void** extSemahore, amd::Os::FileDesc handle) {
|
||||
ShouldNotReachHere();
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user