Skip to content

sample_mask input: allow either full coverage mask or (1<<sample_index) - #4671

Merged
dneto0 merged 1 commit into
gpuweb:mainfrom
dneto0:sample-mask-either-behaviour
Jun 22, 2026
Merged

dneto0 merged 1 commit into
gpuweb:mainfrom
dneto0:sample-mask-either-behaviour

Conversation

@dneto0

@dneto0 dneto0 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

This allows the varying behaviour observed on different platforms.

Generalize the "findFailedPixels" utility to allow two reference "expected" texel views. A pixel comparison succeeds if the "actual" texel matches the texel from either of the "expected" or the "alternate expected" texel views.

See gpuweb/gpuweb#5457

Issue: #


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.

@dneto0
dneto0 requested review from alan-baker and greggman June 19, 2026 23:09
@github-actions

github-actions Bot commented Jun 19, 2026 •

Copy link
Copy Markdown

Results for build job (at 840902c):

 Test case/subcase counts did not change.

@alan-baker alan-baker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked myself if a particular device must have all invocations be one answer or the other and I think the answer is no.

Comment thread src/webgpu/util/texture/texture_ok.ts Resolved
This allows the varying behaviour observed on different platforms.

Generalize the "findFailedPixels" utility to allow two reference
"expected" texel views.  A pixel comparison succeeds if the "actual"
texel matches the texel from either of the "expected" or the "alternate
expected" texel views.

See gpuweb/gpuweb#5457

Co-authored-by: alan-baker <alanbaker@google.com>
@dneto0
dneto0 force-pushed the sample-mask-either-behaviour branch from 0fd4154 to 840902c Compare June 22, 2026 13:23
@dneto0
dneto0 merged commit 8d64795 into gpuweb:main Jun 22, 2026
1 check passed
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