From 0d415ff26c8b93fcf60f91ee8ac45c4dc452a58b Mon Sep 17 00:00:00 2001 From: jchen10 Date: Thu, 20 Jan 2022 07:23:28 +0000 Subject: [PATCH] D3D12: Ignore the debug warning for vertex buffer out-of-bounds This adds D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_VERTEX_BUFFER_TOO_SMALL to the filter list of debug layer warning messages. BUG=dawn:1261 Change-Id: Ifd0fdf9eb8314a1b2a4f9cd7d248daf0a92a6c17 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/76920 Reviewed-by: Austin Eng Commit-Queue: Jie A Chen --- src/dawn_native/d3d12/AdapterD3D12.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dawn_native/d3d12/AdapterD3D12.cpp b/src/dawn_native/d3d12/AdapterD3D12.cpp index fd4746d30c..69d7b9b385 100644 --- a/src/dawn_native/d3d12/AdapterD3D12.cpp +++ b/src/dawn_native/d3d12/AdapterD3D12.cpp @@ -347,6 +347,10 @@ namespace dawn::native::d3d12 { // get rejected and generate a debug error. Then, we request 0 to get the allowed // allowed alignment. D3D12_MESSAGE_ID_CREATERESOURCE_INVALIDALIGNMENT, + + // WebGPU allows OOB vertex buffer access and relies on D3D12's robust buffer access + // behavior. + D3D12_MESSAGE_ID_COMMAND_LIST_DRAW_VERTEX_BUFFER_TOO_SMALL, }; // Create a retrieval filter with a deny list to suppress messages.