Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement GL_FRAMEBUFFER_BINDING (and fix a VertexAttrib1fv typo) #12857
Conversation
The VertexAttrib[234]fv compare to the same size as in their function name. This wasn't noticed becacuse this function isn't connected from the .webidl yet.
highfive
commented
Aug 14, 2016
highfive
commented
Aug 14, 2016
|
Note: Let me know if including unrelated commits in a PR like this is inappropriate, and I can split it out. |
|
r? @emilio |
|
@bors-servo: r+ Thanks for doing this @anholt! :) |
|
|
Implement GL_FRAMEBUFFER_BINDING (and fix a VertexAttrib1fv typo) <!-- Please describe your changes on the following line: --> This PR fixes many webgl conformance test failures due to missing support for a getParameter() call in the webgl test utils. --- <!-- 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 #12852 <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/12857) <!-- Reviewable:end -->
| @@ -1788,7 +1812,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext { | |||
| // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.10 | |||
| fn VertexAttrib1fv(&self, _cx: *mut JSContext, indx: u32, data: *mut JSObject) { | |||
| if let Some(data_vec) = array_buffer_view_to_vec_checked::<f32>(data) { | |||
| if data_vec.len() < 4 { | |||
| if data_vec.len() < 1 { | |||
This comment has been minimized.
This comment has been minimized.
|
On 08/13/2016 05:37 PM, Eric Anholt wrote:
Oh, also, I don't really mind this, it's fine if it doesn't diverge a Thanks again! |
|
|
Seems like legit consequences of the new validation an unexpected consequence of the typo fix? I'll double check as fast as I can have a build. Unfortunately the way the wpt and webgl test suite integration can be flaky in this sense (marks not-run tests as passing), but it's in order to minimize pain at the time of updating the test suite. My intuition is that these tests weren't running without this patch, I'll verify it and if that's the case, I'll r+ once the expectations are updated, thanks! |
|
gl-disabled-vertex was me dropping an apparently macos-specific failure on subtest 15. Can we flag subtests as os-specific failures? |
|
@anholt: yes, you can use the |
|
And the other one was maybe just #11618 :/ |
|
Yep! That seems reasonable. r=me with that expectation change |
17a9ac9
to
6651db8
|
Now to go apply this expectation syntax to the "enable webgl testing on linux" series. |
|
@bors-servo: r+ |
|
|
Implement GL_FRAMEBUFFER_BINDING (and fix a VertexAttrib1fv typo) <!-- Please describe your changes on the following line: --> This PR fixes many webgl conformance test failures due to missing support for a getParameter() call in the webgl test utils. --- <!-- 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 #12852 <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/12857) <!-- Reviewable:end -->
|
|
anholt commentedAug 14, 2016
•
edited by larsbergstrom
This PR fixes many webgl conformance test failures due to missing support for a getParameter() call in the webgl test utils.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is