From a7207e9dcc0b3573dced10a463d8585289273c8d Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Fri, 26 May 2023 16:00:50 +0000 Subject: [PATCH] d3d11: ignore backend debug layer warning from SetPrivateData() User can create texture for external ID3D11Texture which may already be set debug label with SetPrivateData() call. It will cause debug layer warnings, so ignore it. Bug: dawn:1705 Change-Id: I8090a64eb54275f338e5c0423941705a568560d1 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/134700 Reviewed-by: Corentin Wallez Kokoro: Kokoro Commit-Queue: Peng Huang --- src/dawn/native/d3d11/PhysicalDeviceD3D11.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dawn/native/d3d11/PhysicalDeviceD3D11.cpp b/src/dawn/native/d3d11/PhysicalDeviceD3D11.cpp index 79d2d46332..e1bc7a1f59 100644 --- a/src/dawn/native/d3d11/PhysicalDeviceD3D11.cpp +++ b/src/dawn/native/d3d11/PhysicalDeviceD3D11.cpp @@ -35,6 +35,8 @@ MaybeError InitializeDebugLayerFilters(ComPtr d3d11Device) { static D3D11_MESSAGE_ID kDenyIds[] = { // D3D11 Debug layer warns no RTV set, however it is allowed. D3D11_MESSAGE_ID_DEVICE_DRAW_RENDERTARGETVIEW_NOT_SET, + // D3D11 Debug layer warns SetPrivateData() with same name more than once. + D3D11_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS, }; // Filter out info/message and only create errors from warnings or worse.