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

Dieser Commit ist enthalten in:
Lin, Qun verfasst und GitHub committed 2025-06-27 07:51:22 +08:00
1 Ursprung a2dafbeacf
Commit 9699cc3864
8 Dateien geändert
+37 -17

Keine Dateien entsprechen Ihrer Suche

+2
Datei anzeigen
@@ -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;
}