[native] Fix off-by-one in oversized copy row thresholds With >= thresholds on kMaxTexelsPerRow (16384) and kMaxBytesPerRow (256 KiB), compact rows of 16384-wide textures trigger oversized-row splitting even though per-row splitting cannot shrink a single row's width (and depth/stencil copies cannot be split into partial subresources at all). Intel GPUs encode a buffer<->texture copy's texels per row and bytes per row as (value - 1) in 14-bit and 18-bit hardware register fields, so up to 16384 texels and 256 KiB per row inclusive fit without wrapping. Using strict > avoids pointless per-row splits on 16384-wide textures and eliminates the need for horizontal row splitting (and depth/stencil render-pass blit workarounds) in follow-up changes for staging and depth/stencil copies. Update boundary unit tests and extend CopyTests to verify exact inclusive and just-above limits for buffer-to-texture and texture-to-buffer copies, including compact 16384-wide color and depth/stencil textures. Bug: 587994305, 481934465 Change-Id: I66a6e55a93b7cb7cd6e9cef2a58efdb6b7527a26 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/365396 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.