From 0a067f1ff9a41dabb7be6ad0d1d4fc81fec2bda1 Mon Sep 17 00:00:00 2001 From: Austin Eng Date: Fri, 2 Apr 2021 06:52:33 +0000 Subject: [PATCH] Remove D3D12 live object reporting This ends up incorrectly reporting live objects from previous CTS tests. We should find a better way to call ReportLiveObjects, but doing so on backend initialization is probably not the right time. Bug: dawn:745 Change-Id: I9d0beb5f8b20af9c83f5e78f19630d5c78ef4da2 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/46721 Auto-Submit: Austin Eng Commit-Queue: Corentin Wallez Reviewed-by: Bryan Bernhart Reviewed-by: Corentin Wallez --- src/dawn_native/d3d12/BackendD3D12.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/dawn_native/d3d12/BackendD3D12.cpp b/src/dawn_native/d3d12/BackendD3D12.cpp index a162dbe0e5..57548c7ef8 100644 --- a/src/dawn_native/d3d12/BackendD3D12.cpp +++ b/src/dawn_native/d3d12/BackendD3D12.cpp @@ -48,13 +48,6 @@ namespace dawn_native { namespace d3d12 { // Enable additional debug layers. dxgiFactoryFlags |= DXGI_CREATE_FACTORY_DEBUG; } - - ComPtr dxgiDebug; - if (SUCCEEDED(functions->dxgiGetDebugInterface1(0, IID_PPV_ARGS(&dxgiDebug)))) { - ASSERT(dxgiDebug != nullptr); - dxgiDebug->ReportLiveObjects(DXGI_DEBUG_ALL, - DXGI_DEBUG_RLO_FLAGS(DXGI_DEBUG_RLO_ALL)); - } } if (beginCaptureOnStartup) {