Align createContext & createDevice DisableGpuTimeout flags.

- Make sure we program the same value for both calls.

Change-Id: I11b26fb56e60fff8f379827f6f6424a387b005d3
This commit is contained in:
Mrozek, Michal
2018-02-22 14:19:08 +01:00
committed by sys_ocldev
parent feb7d00e22
commit 3c230f6302
2 changed files with 11 additions and 0 deletions

View File

@@ -696,6 +696,11 @@ D3DKMT_HANDLE Wddm::createContext() {
CreateContext.EngineAffinity = 0;
CreateContext.Flags.NullRendering = (UINT)DebugManager.flags.EnableNullHardware.get();
if (preemptionMode >= PreemptionMode::MidBatch) {
CreateContext.Flags.DisableGpuTimeout = readEnablePreemptionRegKey();
}
CreateContext.PrivateDriverDataSize = sizeof(PrivateData);
CreateContext.NodeOrdinal = node;
CreateContext.pPrivateDriverData = &PrivateData;