Skip to content

Test viewFormats with TRANSIENT_ATTACHMENT#4647

Merged
kainino0x merged 3 commits into
gpuweb:mainfrom
kainino0x:transient-viewformats
May 21, 2026
Merged

Test viewFormats with TRANSIENT_ATTACHMENT#4647
kainino0x merged 3 commits into
gpuweb:mainfrom
kainino0x:transient-viewformats

Conversation

@kainino0x
Copy link
Copy Markdown
Collaborator

@kainino0x kainino0x commented May 20, 2026

This should not be allowed.

Passes in Chromium with this patch: https://dawn-review.googlesource.com/c/dawn/+/310035

Issue: gpuweb/gpuweb#6263
Spec change: gpuweb/gpuweb#6267


Requirements for PR author:

  • All missing test coverage is tracked with "TODO" or .unimplemented().
  • New helpers are /** documented */ and new helper files are found in helper_index.txt.
  • Test behaves as expected in a WebGPU implementation. (If not passing, explain above.)
  • Test have be tested with compatibility mode validation enabled and behave as expected. (If not passing, explain above.)

Requirements for reviewer sign-off:

  • Tests are properly located.
  • Test descriptions are accurate and complete.
  • Tests provide complete coverage (including validation control cases). Missing coverage MUST be covered by TODOs.
  • Tests avoid over-parameterization (see case count report).

When landing this PR, be sure to make any necessary issue status updates.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 20, 2026

Results for build job (at 8702550):

+webgpu:api,validation,createTexture:transient_viewFormats:* - 2 cases, 10 subcases (~5/case)
-TOTAL: 281256 cases, 2322907 subcases
+TOTAL: 281258 cases, 2322917 subcases

@kainino0x kainino0x marked this pull request as ready for review May 21, 2026 05:51
@kainino0x
Copy link
Copy Markdown
Collaborator Author

PTAL

kainino0x added a commit to gpuweb/gpuweb that referenced this pull request May 21, 2026
Alternate option would be: allow `viewFormats` to be used, but it can
only be exactly `[format]`.

Tests: gpuweb/cts#4647

Fixes #6263
@kainino0x kainino0x merged commit f72cf53 into gpuweb:main May 21, 2026
1 check passed
@kainino0x kainino0x deleted the transient-viewformats branch May 21, 2026 21:13
copybara-service Bot pushed a commit to google/dawn that referenced this pull request May 22, 2026
Without this, we hit "Failed to create MTLTexture view" in the Metal
backend when trying to create a view with a different format on a
transient texture. (This happens even without Metal validation layers so
it's not a vulnerability, it just loses the device.)

Bug: gpuweb/gpuweb#6263
Test: gpuweb/cts#4647
Change-Id: Ia4b33594b0d47822af34fc5d8294d22f996fdc38
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/310035
Reviewed-by: Fr <beaufort.francois@gmail.com>
Commit-Queue: Fr <beaufort.francois@gmail.com>
Auto-Submit: Kai Ninomiya <kainino@chromium.org>
brave-builds pushed a commit to brave/chromium that referenced this pull request May 22, 2026
https://dawn.googlesource.com/dawn.git/+log/e935a1b57eb8..86a5e62047fb

2026-05-22 jrprice@google.com [intrinsics] Use absolute paths for imports
2026-05-22 jrprice@google.com [bazel] Export .def and .tmpl files
2026-05-22 jrprice@google.com [bazel] Add BUILD.bazel files for Go packages
2026-05-22 jrprice@google.com Revert "[cmake] Add support for generated sources"
2026-05-22 petermcneeley@google.com [dawn] Add clang-tidy 'cppcoreguidelines-pro-type-member-init'
2026-05-22 jrprice@google.com Revert "[gn] Add support for generated sources"
2026-05-22 kainino@chromium.org [dawn][native] Disallow viewFormats with TRANSIENT_ATTACHMENT
2026-05-22 jiawei.shao@intel.com D3D12: Implement `GetAllocatorMemoryInfo()`
2026-05-22 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from c61c0894e58c to e7a561a5f0b7 (200 revisions)
2026-05-22 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from 5e4cafd to 2976e22 (666 revisions)
2026-05-22 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll DirectX Shader Compiler from 8c0d03247b35 to ac0a538752cb (3 revisions)
2026-05-22 senorblanco@chromium.org GL: unskip some BindGroup tests.
2026-05-22 jrprice@google.com [build] Add directory prefix to .tmpl file glob
2026-05-22 jrprice@google.com [build] Track includes to/from generated sources
2026-05-22 jrprice@google.com [gn] Add support for generated sources

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/dawn-chromium-autoroll
Please CC cwallez@google.com,rharrison@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Dawn: https://bugs.chromium.org/p/dawn/issues/entry
To file a bug in Chromium: https://bugs.chromium.org/p/chromium/issues/entry

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Cq-Include-Trybots: luci.chromium.try:dawn-android-arm-deps-rel;luci.chromium.try:dawn-android-arm64-deps-rel;luci.chromium.try:dawn-linux-x64-deps-rel;luci.chromium.try:dawn-mac-x64-deps-rel;luci.chromium.try:dawn-mac-arm64-deps-rel;luci.chromium.try:dawn-win10-x64-deps-rel;luci.chromium.try:dawn-win10-x86-deps-rel;luci.chromium.try:dawn-win11-arm64-deps-rel;luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:gpu-fyi-cq-mac-arm64;luci.chromium.try:win_optional_gpu_tests_rel;luci.chromium.try:gpu-fyi-cq-android-arm64
Bug: chromium:407730048,chromium:442860471,chromium:491082532,chromium:513255285
Tbr: rharrison@google.com
Test: Test: gpuweb/cts#4647
Change-Id: I8e234fca2fbc2439d4a243dfe19febf04c97acfc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7870967
Commit-Queue: chromium-autoroll@skia-public.iam.gserviceaccount.com <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: chromium-autoroll@skia-public.iam.gserviceaccount.com <chromium-autoroll@skia-public.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1635237}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants