Skip to content

Conversation

@greggman
Copy link
Contributor

@greggman greggman commented Jan 8, 2026

primitive_index, subgroup_id, subgroup_size were missing from the test.

note: Chromium doesn't currently count these. Bugs filed. Also, chromium doesn't currently count correctly for the pre-existing ones. Fixes in progress.


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

github-actions bot commented Jan 8, 2026

Results for build job (at 85f4ba2):

-webgpu:api,validation,capability_checks,limits,maxInterStageShaderVariables:createRenderPipeline,at_over:* - 640 cases, 640 subcases (~1/case)
+webgpu:api,validation,capability_checks,limits,maxInterStageShaderVariables:createRenderPipeline,at_over:* - 1880 cases, 1880 subcases (~1/case)
-TOTAL: 284498 cases, 2342682 subcases
+TOTAL: 285738 cases, 2343922 subcases

@greggman greggman force-pushed the maxInterStageShaderVariables branch 2 times, most recently from 51b8675 to c8d7632 Compare January 9, 2026 01:40
@ErichDonGubler
Copy link
Member

It sounds like this renders #4541 obsolete?

@greggman
Copy link
Contributor Author

greggman commented Jan 9, 2026

Well yea, kind of. Your other PR fixed the test so it counted 1 for each builtin. That pointed out that chrome was only counting one. When I went into the spec and saw 3 others were missing I started adding them but with 6 it felt like it needed a bigger refactor. I guess I missed your newer one. Sorry about that. Which one do you prefer?

@greggman
Copy link
Contributor Author

greggman commented Jan 9, 2026

Hi Erich, I just wanted to apologize. I totally missed that you had more PRs up for this issue. Feel free to close this PR.

copybara-service bot pushed a commit to google/dawn that referenced this pull request Jan 9, 2026
The validation for maxInterStageShaderVariables
requires checking primitive_index, subgroup_size, and
subgroup_invocation_id.

With this change chromium passes the latest CTS test:
gpuweb/cts#4554

Bug: 474266022,474266023
Fixed: 474266022,474266023
Change-Id: I6a6a6964256b06687781dfb026f982fce83b8bac
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/284055
Commit-Queue: Gregg Tavares <gman@chromium.org>
Reviewed-by: James Price <jrprice@google.com>
kainino0x added a commit to kainino0x/cts that referenced this pull request Jan 10, 2026
Co-authored-by: Gregg Tavares <github@greggman.com>
@greggman greggman force-pushed the maxInterStageShaderVariables branch from c012822 to f7b1674 Compare January 10, 2026 00:50
kainino0x added a commit that referenced this pull request Jan 13, 2026
…put (#4555)

* refactor: lower some vars. in `max_variables_count,input`

* fix: correctly count fragment input deductions for built-ins in `max_variables_count,input`

* refactor: `max_variables_count,input`: hoist `success` to hidden case param.

* proposed refactor

* Test primitive-index and subgroups too (taken from #4554)

Co-authored-by: Gregg Tavares <github@greggman.com>

* add missing enable directives

---------

Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
Co-authored-by: Gregg Tavares <github@greggman.com>
@kainino0x kainino0x self-requested a review January 14, 2026 00:32
primitive_index, subgroup_id, subgroup_size were missing from the test.
@greggman greggman force-pushed the maxInterStageShaderVariables branch from 58e63d3 to 85f4ba2 Compare January 14, 2026 17:54
@greggman greggman merged commit c4cfd73 into gpuweb:main Jan 14, 2026
1 check passed
@greggman greggman deleted the maxInterStageShaderVariables branch January 14, 2026 21:32
@kainino0x kainino0x linked an issue Jan 14, 2026 that may be closed by this pull request
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.

Add new fragment inputs to maxInterStageShaderVariables:at_over test

3 participants