Skip to content

Fix immersive mode panic on three.js rollercoaster on hololens - #24242

Merged
bors-servo merged 5 commits into
servo:masterfrom
jdm:xr-webgllayer-format
Sep 24, 2019
Merged

bors-servo merged 5 commits into
servo:masterfrom
jdm:xr-webgllayer-format

Conversation

@jdm

@jdm jdm commented Sep 19, 2019 •

Copy link
Copy Markdown
Member

We have some special logic about texture formats when creating drawing buffers for WebGL that needs to be shared with the code that creates a separate framebuffer for immersive mode.



This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/webglframebuffer.rs, components/script/dom/webglrenderingcontext.rs, components/script/dom/xrwebgllayer.rs, components/script/dom/bindings/trace.rs
  • @KiChjang: components/script/dom/webglframebuffer.rs, components/script/dom/webglrenderingcontext.rs, components/script/dom/xrwebgllayer.rs, components/script/dom/bindings/trace.rs

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

Copy link
Copy Markdown

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!

@jdm

jdm commented Sep 19, 2019

Copy link
Copy Markdown
Member Author

r? @asajeffrey

@highfive highfive assigned asajeffrey and unassigned emilio Sep 19, 2019

@asajeffrey asajeffrey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm a bit uncomfortable that this is causing panic, since AFAICT all of the original code could be replicated in user WebGL. That said, this is a definite improvement. @bors-servo r+

@asajeffrey

Copy link
Copy Markdown
Contributor

Ah, does bors not listen to review comments? @bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 38351d5 has been approved by asajeffrey

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Sep 19, 2019
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 38351d5 with merge 4c90df7...

bors-servo pushed a commit that referenced this pull request Sep 19, 2019
Fix immersive mode panic on three.js rollercoaster on hololens

We have some special logic about texture formats when creating drawing buffers for WebGL that needs to be shared with the code that creates a separate framebuffer for immersive mode.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #24083 (GitHub issue number if applicable)
- [x] These changes do not require tests because no CI for hololens; tested manually in the emulator.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24242)
<!-- Reviewable:end -->
@jdm

jdm commented Sep 19, 2019

Copy link
Copy Markdown
Member Author

That's a good point. I should put together some testcases to experiment; filed #24244 to do that.

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel-css

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Sep 19, 2019
@jdm
jdm force-pushed the xr-webgllayer-format branch from 38351d5 to f6727ed Compare September 19, 2019 21:06
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Sep 19, 2019
@jdm
jdm force-pushed the xr-webgllayer-format branch from f6727ed to 4edec82 Compare September 19, 2019 21:46
@jdm

jdm commented Sep 19, 2019

Copy link
Copy Markdown
Member Author

@bors-servo try=wpt

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 4edec82 with merge c7ad5bc...

bors-servo pushed a commit that referenced this pull request Sep 19, 2019
Fix immersive mode panic on three.js rollercoaster on hololens

We have some special logic about texture formats when creating drawing buffers for WebGL that needs to be shared with the code that creates a separate framebuffer for immersive mode.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #24083 (GitHub issue number if applicable)
- [x] These changes do not require tests because no CI for hololens; tested manually in the emulator.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24242)
<!-- Reviewable:end -->
@jdm

jdm commented Sep 19, 2019

Copy link
Copy Markdown
Member Author

r? @asajeffrey

The addition of RGB to the framebuffer completion checks exposed some additional implementation holes which were easy enough to clean up while I was investigating them.

@jdm
jdm force-pushed the xr-webgllayer-format branch 2 times, most recently from d65be06 to 368e030 Compare September 19, 2019 21:55

@asajeffrey asajeffrey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

expected: FAIL

[WebGL test #82: getError expected: INVALID_OPERATION. Was NO_ERROR : IMPLEMENTATION_COLOR_READ_FORMAT should fail for incomplete framebuffers.]
expected: FAIL

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oooh!

@highfive highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Sep 23, 2019
@jdm

jdm commented Sep 23, 2019

Copy link
Copy Markdown
Member Author

@bors-servo retry

1 similar comment
@jdm

jdm commented Sep 23, 2019

Copy link
Copy Markdown
Member Author

@bors-servo retry

@jdm

jdm commented Sep 23, 2019

Copy link
Copy Markdown
Member Author

@bors-servo r-

@jdm

jdm commented Sep 23, 2019

Copy link
Copy Markdown
Member Author

@bors-servo r=nox,asajeffrey

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit ce12723 has been approved by nox,asajeffrey

@highfive highfive assigned nox and unassigned asajeffrey Sep 23, 2019
@jdm

jdm commented Sep 23, 2019

Copy link
Copy Markdown
Member Author

@bors-servo r-

@jdm jdm closed this Sep 23, 2019
@jdm jdm reopened this Sep 23, 2019
@jdm

jdm commented Sep 23, 2019

Copy link
Copy Markdown
Member Author

@bors-servo r=asajeffrey,nox

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit ea715a7 has been approved by asajeffrey,nox

@highfive highfive assigned asajeffrey and unassigned nox Sep 23, 2019
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit ea715a7 with merge 8c55623...

bors-servo pushed a commit that referenced this pull request Sep 23, 2019
Fix immersive mode panic on three.js rollercoaster on hololens

We have some special logic about texture formats when creating drawing buffers for WebGL that needs to be shared with the code that creates a separate framebuffer for immersive mode.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #24083 and fix #20595.
- [x] These changes do not require tests because no CI for hololens; tested manually in the emulator.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24242)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - status-taskcluster

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Sep 23, 2019
@jdm

jdm commented Sep 23, 2019

Copy link
Copy Markdown
Member Author

@bors-servo retry

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit ea715a7 with merge 6ca62aa...

bors-servo pushed a commit that referenced this pull request Sep 23, 2019
Fix immersive mode panic on three.js rollercoaster on hololens

We have some special logic about texture formats when creating drawing buffers for WebGL that needs to be shared with the code that creates a separate framebuffer for immersive mode.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #24083 and fix #20595.
- [x] These changes do not require tests because no CI for hololens; tested manually in the emulator.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24242)
<!-- Reviewable:end -->
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Sep 23, 2019
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - linux-rel-css, linux-rel-wpt, status-taskcluster
Approved by: asajeffrey,nox
Pushing 6ca62aa to master...

@bors-servo
bors-servo merged commit ea715a7 into servo:master Sep 24, 2019
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Sep 24, 2019
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.

XR framebuffer creation panics when setting up texture Implement component check in Image2D methods

7 participants