wsl/hsakmt: set to system domain when cpu want to access the buffer

Reviewed-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: tiancyin <tianci.yin@amd.com>
This commit is contained in:
tiancyin authored and Frank Min committed 2025-11-05 18:53:35 +08:00
1 parent c83aca9878
commit ee73fc046e
1 file changed
+1 -1
+1 -1
View File
@@ -177,7 +177,7 @@ HSAKMT_STATUS hsaKmtAllocMemoryAlignInternal(HSAuint32 PreferredNode,
create_info.alignment = Alignment;
create_info.va_hint = reinterpret_cast<gpusize>(*MemoryAddress);
if ((PreferredNode == 0 && !MemFlags.ui32.NonPaged)
if ((PreferredNode == 0 && MemFlags.ui32.HostAccess)
|| zfb_support || MemFlags.ui32.GTTAccess) {
if (SizeInBytes > max_single_alloc_size)
return HSAKMT_STATUS_NO_MEMORY;