Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update wgpu and WebGPU CTS to include copy validation tests #27590

Merged
merged 3 commits into from Aug 16, 2020

Conversation

@kunalmohan
Copy link
Collaborator

kunalmohan commented Aug 16, 2020

r?@kvark


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • There are tests for these changes
@highfive
Copy link

highfive commented Aug 16, 2020

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/gpurenderbundleencoder.rs, components/script/dom/gpudevice.rs, components/script/dom/gputexture.rs
  • @jgraham: tests/wpt/webgpu/tests/webgpu/webgpu/capability_info.js, tests/wpt/webgpu/tests/webgpu/webgpu/util/texture/layout.js, tests/wpt/webgpu/tests/webgpu/webgpu/api/operation/resource_init/texture_zero_init_test.js, tests/wpt/webgpu/tests/webgpu/webgpu/api/validation/copyBufferToBuffer.spec.js, tests/wpt/webgpu/tests/webgpu/webgpu/api/validation/createBindGroupLayout.spec.js and 23 more
  • @KiChjang: components/script/dom/gpurenderbundleencoder.rs, components/script/dom/gpudevice.rs, components/script/dom/gputexture.rs
@kunalmohan
Copy link
Collaborator Author

kunalmohan commented Aug 16, 2020

@bors-servo try=wpt-mac

Let's see if there are any unexpected crashes on macOS in the new tests.

bors-servo added a commit that referenced this pull request Aug 16, 2020
Update wgpu and WebGPU CTS to include copy validation tests

<!-- Please describe your changes on the following line: -->
r?@kvark

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
@bors-servo
Copy link
Contributor

bors-servo commented Aug 16, 2020

Trying commit e5ccaee with merge 68bc1fd...

@kunalmohan
Copy link
Collaborator Author

kunalmohan commented Aug 16, 2020

@kvark Only the first commit is worth reviewing, rest is just copy-paste of new tests.

@kunalmohan kunalmohan added this to In progress in WebGPU MVP via automation Aug 16, 2020
@bors-servo
Copy link
Contributor

bors-servo commented Aug 16, 2020

☀️ Test successful - status-taskcluster
State: approved= try=True

@kvark
kvark approved these changes Aug 16, 2020
wgt::TextureUsage::from_bits(descriptor.usage).map(|usg| wgt::TextureDescriptor {
label: descriptor.parent.label.as_ref().map(|s| s.to_string()),
wgt::TextureUsage::from_bits(descriptor.usage).map(|usg| wgpu_res::TextureDescriptor {
label: descriptor

This comment has been minimized.

@kvark

kvark Aug 16, 2020

Member

it looks like you could benefit from a small helper function to get that label

format: convert_texture_format(format),
dimension: convert_texture_view_dimension(dimension),
.map(|l| Cow::Owned(l.to_string())),
format: descriptor.format.map(|fr| convert_texture_format(fr)),

This comment has been minimized.

@kvark

kvark Aug 16, 2020

Member

nit: can just do map(convert_texture_format)

format: descriptor.format.map(|fr| convert_texture_format(fr)),
dimension: descriptor
.dimension
.map(|dm| convert_texture_view_dimension(dm)),

This comment has been minimized.

@kvark

kvark Aug 16, 2020

Member

and here

@kvark
Copy link
Member

kvark commented Aug 16, 2020

notes can be addressed in a follow-up :)
@bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Aug 16, 2020

📌 Commit e5ccaee has been approved by kvark

@bors-servo
Copy link
Contributor

bors-servo commented Aug 16, 2020

Testing commit e5ccaee with merge 62c7cb4...

@bors-servo
Copy link
Contributor

bors-servo commented Aug 16, 2020

☀️ Test successful - status-taskcluster
Approved by: kvark
Pushing 62c7cb4 to master...

@bors-servo bors-servo merged commit 62c7cb4 into servo:master Aug 16, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
WebGPU MVP automation moved this from In progress to Done Aug 16, 2020
@kunalmohan kunalmohan deleted the kunalmohan:update-cts branch Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
WebGPU MVP
  
Done
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.