D3D11: ignore debug layer's msgs about VideoDecoder's failures

Dawn never handles video decoding directly. The errors must have
happened externally because Dawn shares the same D3D device with the
video decoder so ignore them.
Bug: 405932553

Change-Id: I9d518b1cade6497e76cf85649f6288ec644e9f1c
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/232519
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Quyen Le <lehoangquyen@chromium.org>
diff --git a/src/dawn/native/d3d11/DeviceD3D11.cpp b/src/dawn/native/d3d11/DeviceD3D11.cpp
index 1bf59e1..e913305 100644
--- a/src/dawn/native/d3d11/DeviceD3D11.cpp
+++ b/src/dawn/native/d3d11/DeviceD3D11.cpp
@@ -89,6 +89,10 @@
             // We already handle CheckFeatureSupport() failures so ignore the messages from the
             // debug layer.
             return true;
+        case D3D11_MESSAGE_ID_DECODERBEGINFRAME_HAZARD:
+            // This is video decoder's error which must happen externally because Dawn doesn't
+            // handle video directly. So ignore it.
+            return true;
         default:
             return false;
     }