From d6b5433f14a8aa1d203689e2919df65600298abf Mon Sep 17 00:00:00 2001 From: "Zdanowicz, Zbigniew" Date: Mon, 12 Feb 2018 16:53:20 +0100 Subject: [PATCH] Lower Windows minimal address to 16kB Change-Id: I138438943d438ace0b5d76e04f3af8d9541d532a --- runtime/os_interface/windows/windows_defs.h | 2 +- unit_tests/os_interface/windows/wddm_tests.cpp | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/runtime/os_interface/windows/windows_defs.h b/runtime/os_interface/windows/windows_defs.h index d94d5730af..50c7ae0a06 100644 --- a/runtime/os_interface/windows/windows_defs.h +++ b/runtime/os_interface/windows/windows_defs.h @@ -24,6 +24,6 @@ namespace OCLRT { -constexpr uintptr_t windowsMinAddress = 0x200000; +constexpr uintptr_t windowsMinAddress = 0x4000; } // namespace OCLRT diff --git a/unit_tests/os_interface/windows/wddm_tests.cpp b/unit_tests/os_interface/windows/wddm_tests.cpp index ec352d5bc3..0feb5f5feb 100644 --- a/unit_tests/os_interface/windows/wddm_tests.cpp +++ b/unit_tests/os_interface/windows/wddm_tests.cpp @@ -37,6 +37,18 @@ using namespace OCLRT; +HWTEST_F(WddmTestSingle, givenMinWindowsAddressWhenWddmIsInitializedThenWddmUseThisAddress) { + uintptr_t expectedAddress = 0x4000; + EXPECT_EQ(expectedAddress, OCLRT::windowsMinAddress); + Wddm *wddm = Wddm::createWddm(); + + bool status = wddm->init(); + EXPECT_TRUE(status); + EXPECT_TRUE(wddm->isInitialized()); + EXPECT_EQ(expectedAddress, wddm->getWddmMinAddress()); + delete wddm; +} + HWTEST_F(WddmTestSingle, creation) { Wddm *wddm = Wddm::createWddm();