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

Implement GPUComputePassEncoder functions #25793

Merged
merged 1 commit into from Feb 19, 2020

Conversation

@imiklos
Copy link
Contributor

imiklos commented Feb 18, 2020

Implement the dispatch, endPass, setBindGroup, setPipeline functions of GPUComputePassEncoder.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes addresses a part of #24706

cc @kvark @jdm @zakorgy

@highfive
Copy link

highfive commented Feb 18, 2020

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/webidls/GPUComputePassEncoder.webidl, components/script/dom/gpucomputepassencoder.rs, components/script/dom/webidls/GPUProgrammablePassEncoder.webidl, components/script/dom/bindings/trace.rs, components/script/dom/gpubindgroup.rs and 2 more
  • @KiChjang: components/script/dom/webidls/GPUComputePassEncoder.webidl, components/script/dom/gpucomputepassencoder.rs, components/script/dom/webidls/GPUProgrammablePassEncoder.webidl, components/script/dom/bindings/trace.rs, components/script/dom/gpubindgroup.rs and 2 more
@highfive
Copy link

highfive commented Feb 18, 2020

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
  • These commits modify script code, but no tests are modified. Please consider adding a test!
@imiklos imiklos force-pushed the szeged:wgpu_compute_pass_encoder_fns branch from a17322d to 817cfd4 Feb 18, 2020
@imiklos
Copy link
Contributor Author

imiklos commented Feb 18, 2020

I've removed the mach and nix crates from the ignore duplicates list.

@kvark
kvark approved these changes Feb 18, 2020
Cargo.lock Outdated
@@ -6758,10 +6709,9 @@ dependencies = [
[[package]]
name = "wgpu-core"
version = "0.1.0"
source = "git+https://github.com/gfx-rs/wgpu#d4a46cb60e71d6b108e9052cc581e52e44a16a44"
source = "git+https://github.com/imiklos/wgpu?branch=command_encoder_public#079da18c533011722ad836c01b58511d3ee870df"

This comment has been minimized.

@kvark

kvark Feb 18, 2020

Member

why are you using a custom branch here?

This comment has been minimized.

@imiklos

imiklos Feb 18, 2020

Author Contributor

Only temporary, just for the review. I will update this. This patch is depends on this pull request: gfx-rs/wgpu#496

@jdm
jdm approved these changes Feb 18, 2020
@jdm jdm assigned jdm and unassigned SimonSapin Feb 18, 2020
@imiklos imiklos force-pushed the szeged:wgpu_compute_pass_encoder_fns branch from 817cfd4 to 6d244e1 Feb 19, 2020
@imiklos
Copy link
Contributor Author

imiklos commented Feb 19, 2020

I've changed back the wgpu-core from the forked one and used the already exposed ffi functions for encode passes as @kvark mentioned.

Implement the `dispatch`, `endPass`, `setBindGroup`, `setPipeline` functions of `GPUComputePassEncoder`.
@imiklos imiklos force-pushed the szeged:wgpu_compute_pass_encoder_fns branch from 6d244e1 to 170e997 Feb 19, 2020
@jdm
Copy link
Member

jdm commented Feb 19, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Feb 19, 2020

📌 Commit 170e997 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Feb 19, 2020

Testing commit 170e997 with merge 7863ac7...

bors-servo added a commit that referenced this pull request Feb 19, 2020
Implement GPUComputePassEncoder functions

Implement the `dispatch`, `endPass`, `setBindGroup`, `setPipeline` functions of `GPUComputePassEncoder`.

<!-- Please describe your changes on the following line: -->

---
<!-- 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
- [x] These changes addresses a part of #24706

<!-- 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.-->
cc @kvark @jdm @zakorgy
<!-- 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 Feb 19, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Feb 19, 2020

@bors-servo retry

bors-servo added a commit that referenced this pull request Feb 19, 2020
Implement GPUComputePassEncoder functions

Implement the `dispatch`, `endPass`, `setBindGroup`, `setPipeline` functions of `GPUComputePassEncoder`.

<!-- Please describe your changes on the following line: -->

---
<!-- 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
- [x] These changes addresses a part of #24706

<!-- 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.-->
cc @kvark @jdm @zakorgy
<!-- 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 Feb 19, 2020

Testing commit 170e997 with merge 14851ce...

@bors-servo
Copy link
Contributor

bors-servo commented Feb 19, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Feb 19, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Feb 19, 2020

Testing commit 170e997 with merge 8913c67...

bors-servo added a commit that referenced this pull request Feb 19, 2020
Implement GPUComputePassEncoder functions

Implement the `dispatch`, `endPass`, `setBindGroup`, `setPipeline` functions of `GPUComputePassEncoder`.

<!-- Please describe your changes on the following line: -->

---
<!-- 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
- [x] These changes addresses a part of #24706

<!-- 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.-->
cc @kvark @jdm @zakorgy
<!-- 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 Feb 19, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Feb 19, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Feb 19, 2020

Testing commit 170e997 with merge 107a291...

@bors-servo
Copy link
Contributor

bors-servo commented Feb 19, 2020

☀️ Test successful - status-taskcluster
Approved by: jdm
Pushing 107a291 to master...

@bors-servo bors-servo merged commit 107a291 into servo:master Feb 19, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

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