commit | 8520f8ea8a09bb919314228c7cce8a333149e2bd | [log] [tgz] |
---|---|---|
author | Stephen White <senorblanco@chromium.org> | Thu Sep 28 18:27:20 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Sep 28 18:27:20 2023 +0000 |
tree | e8d9f7c067e8652c2d01d93c1eb26a52bbb281c8 | |
parent | 6f2ede60bf320ce42315de35eb257c289e1215f0 [diff] |
GL: fix mipmap settings of wrapped EGLImage. Dawn samples textures with a minFilter of GL_LINEAR_MIPMAP_NEAREST or GL_LINEAR_MIPMAP_LINEAR, requiring a valid mip chain. EGLImages always have a single mip level, but the wrapping code was not setting GL_TEXTURE_MAX_LEVEL, leaving at its default of 1000. This resulted in texture incompleteness and a black frame. Fixed by setting GL_TEXTURE_MAX_LEVEL to zero. Tests didn't catch this, since they were using a 1x1x1 texture. Modified the tests to use 2x1x1 instead. Bug: chromium:1467273 Change-Id: Ibc45ab3537140d746edc71ad68730250a618eb31 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/154020 Commit-Queue: Stephen White <senorblanco@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.