SWDEV-245532 - HIP - Vulkan interop semaphores

linuxpro syntax update

Change-Id: I947f24f67ed59c15fe5047348b0c005e19e93544
This commit is contained in:
pghafari
2021-04-27 17:44:19 -04:00
committed by Payam Ghafari
parent d770b28a3f
commit 6e69bcef9e
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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;
}