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 <cwallez@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Peng Huang <penghuang@chromium.org>
This commit is contained in:
parent
1b48cc0d6f
commit
a7207e9dcc
|
@ -35,6 +35,8 @@ MaybeError InitializeDebugLayerFilters(ComPtr<ID3D11Device> d3d11Device) {
|
||||||
static D3D11_MESSAGE_ID kDenyIds[] = {
|
static D3D11_MESSAGE_ID kDenyIds[] = {
|
||||||
// D3D11 Debug layer warns no RTV set, however it is allowed.
|
// D3D11 Debug layer warns no RTV set, however it is allowed.
|
||||||
D3D11_MESSAGE_ID_DEVICE_DRAW_RENDERTARGETVIEW_NOT_SET,
|
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.
|
// Filter out info/message and only create errors from warnings or worse.
|
||||||
|
|
Loading…
Reference in New Issue