[dawn] Set doYuvToRgbConversionOnly on no-op color space ComputeExternalTextureParams did not report when color space conversion is a no-op, so callers like Android's createExternalTextureNative left doYuvToRgbConversionOnly false. That caused Tint's ApplyGammaCorrect path to run two vec3f pow() calls and a 3x3 gamut multiply per pixel even when source and destination color spaces match. Set doYuvToRgbConversionOnly when source primaries and transfer match the destination at unit luminance scale, propagate it through all callers (including GetNoopColorSpaceParams), and add unit and end2end tests verifying ApplyGammaCorrect is bypassed. Bug: 581652324 Change-Id: Id373ba12cf0734182d41b861dc4d51b07d039631 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/358875 Commit-Queue: Mridul Goyal <mridulgoyal@google.com> Reviewed-by: Tarun Saini <sainitarun@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Nikita Gupta <nikigupta@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.