Skip to content

Use surfman for managing GL surfaces - #24482

Merged
bors-servo merged 1 commit into
servo:masterfrom
asajeffrey:surfman
Nov 1, 2019
Merged

bors-servo merged 1 commit into
servo:masterfrom
asajeffrey:surfman

Conversation

@asajeffrey

Copy link
Copy Markdown
Contributor

Replaces texture sharing with surfman surface sharing.


@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @wafflespeanut: python/servo/command_base.py
  • @cbrewster: components/constellation/Cargo.toml, components/constellation/constellation.rs
  • @KiChjang: components/script/dom/webglframebuffer.rs, components/script/dom/xrwebgllayer.rs, components/script/dom/document.rs, components/script/dom/webgl2renderingcontext.rs, components/script/dom/xrsession.rs and 4 more

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 17, 2019
@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

@jdm jdm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I skimmed a lot of webgl_thread.rs but overall this looks like it's in good shape.

Comment thread ports/libsimpleservo/api/Cargo.toml Resolved
Comment thread ports/libsimpleservo/capi/Cargo.toml Resolved
Comment thread python/servo/command_base.py Resolved
Comment thread python/servo/command_base.py Resolved
Comment thread ports/glutin/Cargo.toml Resolved
Comment thread components/canvas/webgl_thread.rs Resolved
@jdm

jdm commented Oct 17, 2019

Copy link
Copy Markdown
Member

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

🔒 Merge conflict

@jdm jdm added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Oct 17, 2019
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Oct 17, 2019
@jdm

jdm commented Oct 17, 2019

Copy link
Copy Markdown
Member

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit e3943ea with merge a866796...

bors-servo pushed a commit that referenced this pull request Oct 17, 2019
Use surfman for managing GL surfaces

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

Replaces texture sharing with surfman surface sharing.

---
<!-- 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 fix #23509  and #24256
- [x] These changes do not require tests because this is backend gfx

<!-- 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
Copy Markdown
Contributor

💔 Test failed - linux-rel-wpt

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-tests-failed The changes caused existing tests to fail. labels Oct 17, 2019
@asajeffrey

Copy link
Copy Markdown
Contributor Author

Most comments addressed, the outstanding one is about depth/stencil/alpha.

@asajeffrey

Copy link
Copy Markdown
Contributor Author

Build failures are caused by the warnings caused by WebVR not being implemented.

@asajeffrey

Copy link
Copy Markdown
Contributor Author

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit abbf37f with merge 88c3a8d...

bors-servo pushed a commit that referenced this pull request Oct 17, 2019
Use surfman for managing GL surfaces

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

Replaces texture sharing with surfman surface sharing.

---
<!-- 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 fix #23509  and #24256
- [x] These changes do not require tests because this is backend gfx

<!-- 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
Copy Markdown
Contributor

💔 Test failed - linux-rel-css

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Oct 17, 2019
@asajeffrey

Copy link
Copy Markdown
Contributor Author

The android build is failing because something is causing a -lGL link flag to be emitted.

@asajeffrey

Copy link
Copy Markdown
Contributor Author

@jdm

jdm commented Oct 17, 2019

Copy link
Copy Markdown
Member

@jdm

jdm commented Oct 17, 2019

Copy link
Copy Markdown
Member

They're all crashes of:

 │ Failed to create graphics context!: NoCurrentContext (thread main, at src/libcore/result.rs:1165)

@asajeffrey

Copy link
Copy Markdown
Contributor Author

OK, I think I addressed all of the review comments apart from #24593. @bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit dba0f3f with merge bfc4be1...

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - status-taskcluster

Comment thread etc/taskcluster/decision_task.py Resolved
@asajeffrey

Copy link
Copy Markdown
Contributor Author

Ported @jdm's VAO code. @bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 68f1494 with merge 80c5e0d...

@asajeffrey

Copy link
Copy Markdown
Contributor Author

Ooops, broke the mac build script. @bors-servo try=mac

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 4b35a84 with merge 8b30a17...

@jdm

jdm commented Nov 1, 2019

Copy link
Copy Markdown
Member

I have verified that d64bed7 fixes #24593 under ANGLE.

@bors-servo

Copy link
Copy Markdown
Contributor

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

Comment thread components/canvas/webgl_thread.rs Resolved
Comment thread components/canvas/webgl_thread.rs Outdated
.context_descriptor_attributes(&descriptor)
.flags
.contains(ContextAttributeFlags::ALPHA);
let descriptor_attributes = self.device.context_descriptor_attributes(&descriptor);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: indentation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That's rustfmt for you.

Co-authored-by: Alan Jeffrey <[email protected]>
Co-authored-by: Zakor Gyula <[email protected]>
Co-authored-by: Josh Matthews <[email protected]>
@asajeffrey

Copy link
Copy Markdown
Contributor Author

Squashed. @bors-servo r=jdm

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit a358bca has been approved by jdm

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit a358bca with merge 162b2f5...

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - status-taskcluster

@jdm

jdm commented Nov 1, 2019

Copy link
Copy Markdown
Member

@bors-servo retry force

@bors-servo

Copy link
Copy Markdown
Contributor

💣 Failed to start rebuilding: Unknown error

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit a358bca with merge 4e22889...

@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - linux-rel-css, linux-rel-wpt, status-taskcluster
Approved by: jdm
Pushing 4e22889 to master...

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.

7 participants