Skip to content

Commit 69c9cac

Browse files
feature: Enable ULLS on wddm 2.3
Related-To: NEO-4843 Signed-off-by: Lukasz Jobczyk <[email protected]>
1 parent d2c6283 commit 69c9cac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

shared/source/os_interface/windows/os_context_win.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ bool OsContextWin::isDirectSubmissionSupported() const {
102102
auto &productHelper = rootDeviceEnvironment.getHelper<ProductHelper>();
103103
auto isWSL = rootDeviceEnvironment.isWddmOnLinux();
104104

105-
return !isWSL && wddm.getWddmVersion() == WddmVersion::wddm20 && productHelper.isDirectSubmissionSupported(rootDeviceEnvironment.getReleaseHelper());
105+
return !isWSL && productHelper.isDirectSubmissionSupported(rootDeviceEnvironment.getReleaseHelper());
106106
}
107107

108108
OsContextWin::~OsContextWin() {

shared/test/unit_test/os_interface/windows/os_context_win_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ TEST_F(OsContextWinTest, givenWddm20AndProductSupportDirectSubmissionThenDirectS
8181
EXPECT_EQ(productHelper.isDirectSubmissionSupported(this->rootDeviceEnvironment->getReleaseHelper()), osContext->isDirectSubmissionSupported());
8282
}
8383

84-
TEST_F(OsContextWinTest, givenWddm23ThenDirectSubmissionIsNotSupported) {
84+
TEST_F(OsContextWinTest, givenWddm23AndProductSupportDirectSubmissionThenDirectSubmissionIsSupported) {
8585
struct WddmMock : public Wddm {
8686
using Wddm::featureTable;
8787
};
8888
auto wddm = static_cast<WddmMock *>(osInterface->getDriverModel()->as<Wddm>());
8989
wddm->featureTable.get()->flags.ftrWddmHwQueues = 1;
9090
osContext = std::make_unique<OsContextWin>(*wddm, 0, 0u, EngineDescriptorHelper::getDefaultDescriptor(engineTypeUsage, preemptionMode));
91-
EXPECT_FALSE(osContext->isDirectSubmissionSupported());
91+
EXPECT_EQ(this->rootDeviceEnvironment->getHelper<ProductHelper>().isDirectSubmissionSupported(this->rootDeviceEnvironment->getReleaseHelper()), osContext->isDirectSubmissionSupported());
9292
}
9393

9494
TEST_F(OsContextWinTest, givenWddmOnLinuxThenDirectSubmissionIsNotSupported) {

0 commit comments

Comments
 (0)