Skip to content

Add tests for copyBufferToBuffer overloads#4310

Merged
kainino0x merged 5 commits intomainfrom
copyBufferToBuffer
Apr 2, 2025
Merged

Add tests for copyBufferToBuffer overloads#4310
kainino0x merged 5 commits intomainfrom
copyBufferToBuffer

Conversation

@beaufortfrancois
Copy link
Copy Markdown
Collaborator

@beaufortfrancois beaufortfrancois commented Mar 28, 2025

This PR adds tests for copyBufferToBuffer overloads that allow developers to optionally pass offsets and size in gpuweb/gpuweb#5098

Those are currently gated behind the WebGPUExperimentalFeatures blink runtime feature in Chromium. See https://chromium-review.googlesource.com/c/chromium/src/+/6401714

image

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 in the test tree.
  • Test descriptions allow a reader to "read only the test plans and evaluate coverage completeness", and accurately reflect the test code.
  • Tests provide complete coverage (including validation control cases). Missing coverage MUST be covered by TODOs.
  • Helpers and types promote readability and maintainability.

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

@beaufortfrancois
Copy link
Copy Markdown
Collaborator Author

Note that gpuweb/types#180 is required to make bots happy.

@beaufortfrancois
Copy link
Copy Markdown
Collaborator Author

I've updated this PR with @webgpu/types version 0.1.60.

@beaufortfrancois
Copy link
Copy Markdown
Collaborator Author

Thanks @kainino0x! I've addressed all your feedback.

@kainino0x kainino0x merged commit 5aba8ba into main Apr 2, 2025
1 check passed
@kainino0x kainino0x deleted the copyBufferToBuffer branch April 2, 2025 18:40
ErichDonGubler pushed a commit to erichdongubler-mozilla/gecko-dev that referenced this pull request Apr 10, 2025
…8206c7 r=#webgpu-reviewers!

- Tier 2 changes:
	- Apparent-but-not-actually regressions:
		- `webgpu:api,operation,command_buffer,copyBufferToBuffer:*` was expanded to include the simpler overload for `GPUCommandEncoder.copyBufferToBuffer` with no offsets and optional size in [gpuweb/cts#4310](gpuweb/cts#4310), which we have not yet added. Tracking in bug 1959728.
		- `webgpu:shader,execution,expression,call,builtin,workgroupUniformLoad:types:*` expanded with coverage that fails on Linux.
- Tier 3 changes:
	- Some cases for `webgpu:shader,validation,expression,call,builtin,workgroupUniformLoad:no_atomics:*` were removed.
	- Some `stencil*` texture format coverage was moved to new test: `webgpu:api,operation,rendering,stencil:stencil_accumulation:*`

Differential Revision: https://phabricator.services.mozilla.com/D245101
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Apr 17, 2025
…8206c7 r=webgpu-reviewers,teoxoy

- Tier 2 changes:
	- Apparent-but-not-actually regressions:
		- `webgpu:api,operation,command_buffer,copyBufferToBuffer:*` was expanded to include the simpler overload for `GPUCommandEncoder.copyBufferToBuffer` with no offsets and optional size in [gpuweb/cts#4310](gpuweb/cts#4310), which we have not yet added. Tracking in bug 1959728.
		- `webgpu:shader,execution,expression,call,builtin,workgroupUniformLoad:types:*` expanded with coverage that fails on Linux.
- Tier 3 changes:
	- Some cases for `webgpu:shader,validation,expression,call,builtin,workgroupUniformLoad:no_atomics:*` were removed.
	- Some `stencil*` texture format coverage was moved to new test: `webgpu:api,operation,rendering,stencil:stencil_accumulation:*`

Differential Revision: https://phabricator.services.mozilla.com/D245101
globau pushed a commit to mozilla-firefox/firefox that referenced this pull request Apr 17, 2025
…8206c7 r=webgpu-reviewers,teoxoy

- Tier 2 changes:
	- Apparent-but-not-actually regressions:
		- `webgpu:api,operation,command_buffer,copyBufferToBuffer:*` was expanded to include the simpler overload for `GPUCommandEncoder.copyBufferToBuffer` with no offsets and optional size in [gpuweb/cts#4310](gpuweb/cts#4310), which we have not yet added. Tracking in bug 1959728.
		- `webgpu:shader,execution,expression,call,builtin,workgroupUniformLoad:types:*` expanded with coverage that fails on Linux.
- Tier 3 changes:
	- Some cases for `webgpu:shader,validation,expression,call,builtin,workgroupUniformLoad:no_atomics:*` were removed.
	- Some `stencil*` texture format coverage was moved to new test: `webgpu:api,operation,rendering,stencil:stencil_accumulation:*`

Differential Revision: https://phabricator.services.mozilla.com/D245101
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Apr 23, 2025
…8206c7 r=webgpu-reviewers,teoxoy

- Tier 2 changes:
	- Apparent-but-not-actually regressions:
		- `webgpu:api,operation,command_buffer,copyBufferToBuffer:*` was expanded to include the simpler overload for `GPUCommandEncoder.copyBufferToBuffer` with no offsets and optional size in [gpuweb/cts#4310](gpuweb/cts#4310), which we have not yet added. Tracking in bug 1959728.
		- `webgpu:shader,execution,expression,call,builtin,workgroupUniformLoad:types:*` expanded with coverage that fails on Linux.
- Tier 3 changes:
	- Some cases for `webgpu:shader,validation,expression,call,builtin,workgroupUniformLoad:no_atomics:*` were removed.
	- Some `stencil*` texture format coverage was moved to new test: `webgpu:api,operation,rendering,stencil:stencil_accumulation:*`

Differential Revision: https://phabricator.services.mozilla.com/D245101
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