diff --git a/shared/source/os_interface/windows/max_chunk_size_wddm.cpp b/shared/source/os_interface/windows/max_chunk_size_wddm.cpp index efc470ee7f..d4a0de8ff2 100644 --- a/shared/source/os_interface/windows/max_chunk_size_wddm.cpp +++ b/shared/source/os_interface/windows/max_chunk_size_wddm.cpp @@ -9,7 +9,7 @@ namespace NEO { -const GfxMemoryAllocationMethod preferredAllocationMethod = GfxMemoryAllocationMethod::UseUmdSystemPtr; +const GfxMemoryAllocationMethod preferredAllocationMethod = GfxMemoryAllocationMethod::AllocateByKmd; size_t WddmMemoryManager::getHugeGfxMemoryChunkSize(GfxMemoryAllocationMethod allocationMethod) const { return 4 * MemoryConstants::gigaByte - MemoryConstants::pageSize64k; diff --git a/shared/test/unit_test/os_interface/windows/wddm_memory_manager_tests.cpp b/shared/test/unit_test/os_interface/windows/wddm_memory_manager_tests.cpp index b0eb69297b..a649445001 100644 --- a/shared/test/unit_test/os_interface/windows/wddm_memory_manager_tests.cpp +++ b/shared/test/unit_test/os_interface/windows/wddm_memory_manager_tests.cpp @@ -237,7 +237,7 @@ TEST_F(WddmMemoryManagerAllocPathTests, givenAllocateGraphicsMemoryUsingKmdAndMa allocData.makeGPUVaDifferentThanCPUPtr = true; auto graphicsAllocation = memoryManager->allocateGraphicsMemoryUsingKmdAndMapItToCpuVA(allocData, false); - if (preferredAllocationMethod == GfxMemoryAllocationMethod::AllocateByKmd) { + if (preferredAllocationMethod == GfxMemoryAllocationMethod::AllocateByKmd && is64bit) { EXPECT_FALSE(memoryManager->mapGpuVirtualAddressWithCpuPtr); } else { EXPECT_TRUE(memoryManager->mapGpuVirtualAddressWithCpuPtr); @@ -494,7 +494,7 @@ TEST_F(WddmMemoryManagerTests, givenTypeWhenCallIsStatelessAccessRequiredThenPro TEST_F(WddmMemoryManagerTests, givenForcePreferredAllocationMethodFlagSetWhenGettingPreferredAllocationMethodThenValueFlagIsReturned) { DebugManagerStateRestore restorer; - EXPECT_EQ(preferredAllocationMethod, MockWddmMemoryManager::getPreferredAllocationMethod()); + EXPECT_EQ(GfxMemoryAllocationMethod::AllocateByKmd, MockWddmMemoryManager::getPreferredAllocationMethod()); for (const auto &allocationMethod : {GfxMemoryAllocationMethod::UseUmdSystemPtr, GfxMemoryAllocationMethod::AllocateByKmd}) { DebugManager.flags.ForcePreferredAllocationMethod.set(static_cast(allocationMethod));