disable gpu timeouts in winml (#4604)

Co-authored-by: Sheil Kumar <sheilk@microsoft.com>
This commit is contained in:
Sheil Kumar 2020-07-24 13:44:44 -07:00 committed by GitHub
parent 48d969f4bf
commit c361a59cff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -160,6 +160,7 @@ wgdx::Direct3D11::IDirect3DDevice D3DDeviceCache::GetWinrtDevice() {
void D3DDeviceCache::InitializeCommandQueue(ID3D12Device1* device) {
D3D12_COMMAND_QUEUE_DESC queueDesc = {};
queueDesc.Type = D3D12_COMMAND_LIST_TYPE_DIRECT;
queueDesc.Flags = D3D12_COMMAND_QUEUE_FLAG_DISABLE_GPU_TIMEOUT;
WINML_THROW_IF_FAILED(device->CreateCommandQueue(&queueDesc, winrt::guid_of<ID3D12CommandQueue>(), command_queue_.put_void()));
// If possible get the sharing context. If not leave nullptr;