SWDEV-508869 - Fix Linux build error for HIP on PAL (#176)

Este commit está contenido en:
Lin, Qun authored and GitHub committed 2025-06-27 07:51:22 +08:00
1 padre a2dafbeacf
commit 9699cc3864
8 files changed
+37 -17

No files matched your search

+2
Ver fichero
@@ -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;
}