fix: change default wddm low priority context value

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2024-06-18 09:53:11 +00:00
committed by Compute-Runtime-Automation
parent 2cde4a3d9d
commit f910f94ef9
2 changed files with 2 additions and 2 deletions

View File

@@ -963,7 +963,7 @@ bool Wddm::setLowPriorityContextParam(D3DKMT_HANDLE contextHandle) {
D3DKMT_SETCONTEXTSCHEDULINGPRIORITY contextPriority = {};
contextPriority.hContext = contextHandle;
contextPriority.Priority = 1;
contextPriority.Priority = -7;
if (debugManager.flags.ForceWddmLowPriorityContextValue.get() != -1) {
contextPriority.Priority = static_cast<INT>(debugManager.flags.ForceWddmLowPriorityContextValue.get());

View File

@@ -724,7 +724,7 @@ TEST_F(WddmContextSchedulingPriorityTests, givenLowPriorityContextWhenInitializi
auto createContextParams = this->getSetContextSchedulingPriorityDataCallFcn();
EXPECT_EQ(osContext->getWddmContextHandle(), createContextParams->hContext);
EXPECT_EQ(1, createContextParams->Priority);
EXPECT_EQ(-7, createContextParams->Priority);
}
TEST_F(WddmContextSchedulingPriorityTests, givenLowPriorityContextWhenFailingDuringSetSchedulingPriorityThenThrow) {