SWDEV-508869 - Fix Linux build error for HIP on PAL (#176)
Este commit está contenido en:
1 padre
a2dafbeacf
commit
9699cc3864
8 files changed
+37
-17
No files matched your search
@@ -1031,8 +1031,10 @@ Memory* Buffer::createBufferView(amd::Memory& subBufferOwner) const {
|
||||
// ================================================================================================
|
||||
bool Buffer::ExportHandle(void* handle) const {
|
||||
Pal::GpuMemoryExportInfo exportInfo = {};
|
||||
#if IS_WINDOWS
|
||||
// Set default flags in case they are not provided by application
|
||||
exportInfo.accessFlags = GENERIC_READ | GENERIC_WRITE;
|
||||
#endif
|
||||
*reinterpret_cast<Pal::OsExternalHandle*>(handle) = iMem()->ExportExternalHandle(exportInfo);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user