Skip to content

webgl: Add attribute validations and other nits - #10224

Merged
bors-servo merged 6 commits into
servo:masterfrom
emilio:shader-type-validations
Apr 12, 2016
Merged

bors-servo merged 6 commits into
servo:masterfrom
emilio:shader-type-validations

Conversation

@emilio

@emilio emilio commented Mar 27, 2016

Copy link
Copy Markdown
Member

Fixes #9958

Depends on a bunch of prs, and needs a test.

r? @jdm


This change is Reviewable

@emilio emilio added S-blocked-on-external Something, somewhere else, needs to happen before this PR can be merged. A-content/webgl 3d canvas API labels Mar 27, 2016
@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @KiChjang: components/script/dom/webglrenderingcontext.rs, components/script/dom/webglshader.rs, components/script_traits/script_msg.rs, components/script_traits/script_msg.rs, components/script/dom/bindings/trace.rs
  • @emilio: components/script/dom/webglrenderingcontext.rs, components/script/dom/webglshader.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Mar 27, 2016
@highfive

Copy link
Copy Markdown

warning Warning warning

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

@emilio
emilio force-pushed the shader-type-validations branch from 99affb4 to 0d5b783 Compare March 27, 2016 14:33
@jdm jdm added the S-needs-tests New tests have been requested by a reviewer. label Mar 27, 2016
@emilio
emilio force-pushed the shader-type-validations branch 2 times, most recently from af084d4 to f2ebf29 Compare March 27, 2016 15:28
@emilio

emilio commented Mar 27, 2016

Copy link
Copy Markdown
Member Author

Test added.

btw josh, we don't support HTMLScriptElement.type and that made me bang my head against the wall for a while asking why my shader didn't compile (invalid type, so it didn't recognise gl_FragColor).

@emilio emilio removed the S-needs-tests New tests have been requested by a reviewer. label Mar 27, 2016
bors-servo pushed a commit to servo/webrender_traits that referenced this pull request Mar 28, 2016
Webgl limits

Return the GLLimits structure from the `RequestWebGLContext` API message.

This allows us to keep a lot of calls that would require validation here asynchronous.

See servo/servo#10224

r? @glennw
@emilio
emilio force-pushed the shader-type-validations branch 2 times, most recently from c3871a1 to 713d042 Compare March 28, 2016 21:26
@emilio emilio removed the S-blocked-on-external Something, somewhere else, needs to happen before this PR can be merged. label Mar 28, 2016
@emilio

emilio commented Mar 28, 2016

Copy link
Copy Markdown
Member Author

The PRs landed, so this is ready for review.

@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #10242) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Mar 30, 2016
@emilio
emilio force-pushed the shader-type-validations branch from 40a214b to db1a86f Compare March 30, 2016 17:23
@emilio emilio removed the S-needs-rebase There are merge conflict errors. label Mar 30, 2016
@pcwalton

Copy link
Copy Markdown
Contributor

Is this ready to go? If so, note that 4 browser.html P1s are blocked on this. If not, I think we should revert the rust-offscreen-rendering-context upgrades in webrender and webrender_traits.

@nox

nox commented Mar 31, 2016

Copy link
Copy Markdown
Contributor

#10297 unblocks the situation.

@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #10297) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Mar 31, 2016
emilio added a commit to emilio/servo that referenced this pull request Mar 31, 2016
I'll rebase servo#10224 against it.
@highfive highfive added the S-needs-rebase There are merge conflict errors. label Apr 2, 2016
emilio added 6 commits April 3, 2016 01:21
…tions

This allows keeping the VertexAttrib* calls asynchronous.

Another option would be to do the validation in the apply() function,
but that'd require us passing an unnecessary channel around and add
extra synchronization.

The counterpart of this is that it has to be updated when the context
changes, but that's less problem.
It was giving a ton of whitespace errors, and I don't know if it's due
to nodeValue or ANGLE...
@emilio
emilio force-pushed the shader-type-validations branch from ae7bde9 to 70229b1 Compare April 2, 2016 23:23
@emilio emilio removed the S-needs-rebase There are merge conflict errors. label Apr 5, 2016
@jdm

jdm commented Apr 11, 2016

Copy link
Copy Markdown
Member

@bors-servo: r+
Sorry for sitting on this!


Reviewed 10 of 10 files at r1, 2 of 2 files at r2, 10 of 10 files at r3, 9 of 9 files at r4, 6 of 6 files at r5, 8 of 8 files at r6, 4 of 4 files at r7, 9 of 9 files at r8, 7 of 7 files at r9.
Review status: all files reviewed at latest revision, 1 unresolved discussion.


components/canvas/webgl_paint_thread.rs, line 31 [r3] (raw file):
nit: indent this to match the w on the previous line.


Comments from Reviewable

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 70229b1 has been approved by jdm

@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 Apr 11, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 70229b1 with merge f8d6238...

bors-servo pushed a commit that referenced this pull request Apr 11, 2016
webgl: Add attribute validations and other nits

Fixes #9958

Depends on a bunch of prs, and needs a test.

r? @jdm

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

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel

@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 Apr 11, 2016
@emilio

emilio commented Apr 11, 2016

Copy link
Copy Markdown
Member Author

No problem! I don't mind rebasing as many times as necessary :P

Glad to see you're cleaning up the review queue :)

@bors-servo: retry

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 70229b1 with merge f0014bd...

@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Apr 11, 2016
bors-servo pushed a commit that referenced this pull request Apr 11, 2016
webgl: Add attribute validations and other nits

Fixes #9958

Depends on a bunch of prs, and needs a test.

r? @jdm

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10224)
<!-- Reviewable:end -->
@highfive highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Apr 11, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-content/webgl 3d canvas API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants