Auto merge of #21683 - servo:webgl, r=jdm

Properly support PACK_ALIGNMENT in WebGL 1

<!-- 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/21683)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-09-13 01:47:52 -04:00 committed by GitHub
commit 60b926ade4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 560 additions and 2847 deletions

View file

@ -1,7 +1,4 @@
[webgl1-idlharness.any.worker.html]
[webgl1-idlharness]
expected: FAIL
[WebGLRenderingContext interface: constant VERTEX_ATTRIB_ARRAY_ENABLED on interface prototype object]
expected: FAIL
@ -2443,9 +2440,6 @@
[webgl1-idlharness.any.html]
[webgl1-idlharness]
expected: FAIL
[WebGLRenderingContext interface: operation isContextLost()]
expected: FAIL

View file

@ -1,7 +0,0 @@
[webgl1-idlharness.window.html]
[webgl1-idlharness]
expected: FAIL
[WebGLRenderingContext interface: operation isContextLost()]
expected: FAIL

View file

@ -1,7 +1,4 @@
[webgl2-idlharness.any.html]
[webgl2-idlharness]
expected: FAIL
[WebGL2RenderingContext interface: constant DRAW_BUFFER0 on interface prototype object]
expected: FAIL
@ -2086,9 +2083,6 @@
[webgl2-idlharness.any.worker.html]
[webgl2-idlharness]
expected: FAIL
[WebGL2RenderingContext interface: constant DRAW_BUFFER0 on interface prototype object]
expected: FAIL

File diff suppressed because it is too large Load diff

View file

@ -36364,7 +36364,7 @@
"testharness"
],
"conformance/rendering/framebuffer-switch.html": [
"943f571b3b15f9794e2a9e3f89fcdadf1d49b6dd",
"fc8c3dc5dac8a2ece2b286325bf8f1b227f3aee6",
"testharness"
],
"conformance/rendering/framebuffer-texture-clear.html": [
@ -36372,7 +36372,7 @@
"testharness"
],
"conformance/rendering/framebuffer-texture-switch.html": [
"5b677f79ad9378638624dab7c001f8381eed5e87",
"04d03a0bc2e2f834762f0bb47e484a38323213f8",
"testharness"
],
"conformance/rendering/gl-clear.html": [

View file

@ -1,13 +0,0 @@
[read-pixels-pack-alignment.html]
[WebGL test #17: pixel should be 255,102,0,255. Was 0,0,0,0.]
expected: FAIL
[WebGL test #33: pixel should be 255,102,0,255. Was 0,0,0,0.]
expected: FAIL
[WebGL test #53: pixel should be 255,102,0,255. Was 0,0,0,0.]
expected: FAIL
[WebGL test #61: pixel should be 255,102,0,255. Was 0,0,0,0.]
expected: FAIL

View file

@ -1,3 +0,0 @@
[framebuffer-switch.html]
bug: https://github.com/servo/servo/issues/8984
expected: ERROR

View file

@ -1,3 +0,0 @@
[framebuffer-texture-switch.html]
bug: https://github.com/servo/servo/issues/8984
expected: ERROR

View file

@ -1,4 +1,5 @@
[out-of-bounds-index-buffers.html]
bug: https://github.com/servo/servo/issues/20599
[WebGL test #2: should be 0,255,0,255\nat (0, 0) expected: 0,255,0,255 was 0,0,255,255]
expected: FAIL

View file

@ -44,6 +44,7 @@
"use strict";
description("Test framebuffer switching. The test switches between two framebuffers, copying rendering results from one to the other.");
var wtu = WebGLTestUtils;
var canvas = document.getElementById("canvas");
var gl = wtu.create3DContext("canvas");
var program = wtu.setupTexturedQuad(gl);

View file

@ -44,6 +44,7 @@
"use strict";
description("Test framebuffer texture attachment switching. The test uses one framebuffer object and switches its color attachment.");
var wtu = WebGLTestUtils;
var canvas = document.getElementById("canvas");
var gl = wtu.create3DContext("canvas");
var program = wtu.setupTexturedQuad(gl);