webgl: Implement FLIP_Y_AXIS unpacking flag for TexImage, TexSubImage.

This fixes a couple of tests doing RGBA/ubyte image uploads with
flipping.  Other tests with flipping get their expectations changed,
because some other feature is missing (premultiplication or
ImageData/canvas format conversion)
This commit is contained in:
Eric Anholt 2017-01-14 18:32:21 -08:00
parent 73bb75989f
commit 2e6eb547a8
14 changed files with 563 additions and 1806 deletions

View file

@ -1,5 +1,5 @@
[tex-image-and-sub-image-2d-with-canvas-rgb565.html]
type: testharness
[WebGL test #0: at (0, 16) expected: 255,0,0 was 255,227,0]
[WebGL test #0: at (0, 16) expected: 255,0,0 was 123,227,0]
expected: FAIL

View file

@ -1,5 +1,5 @@
[tex-image-and-sub-image-2d-with-canvas-rgba4444.html]
type: testharness
[WebGL test #0: at (0, 16) expected: 255,0,0 was 255,255,0]
[WebGL test #0: at (0, 16) expected: 255,0,0 was 119,255,0]
expected: FAIL

View file

@ -1,11 +1,5 @@
[tex-image-and-sub-image-2d-with-canvas-rgba5551.html]
type: testharness
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas]
expected: FAIL
[WebGL test #0: at (0, 16) expected: 255,0,0 was 255,231,0]
expected: FAIL
[WebGL test #0: at (0, 16) expected: 255,0,0 was 255,230,0]
[WebGL test #0: at (0, 16) expected: 255,0,0 was 123,231,0]
expected: FAIL

View file

@ -1,8 +0,0 @@
[tex-image-and-sub-image-2d-with-canvas.html]
type: testharness
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas]
expected: FAIL
[WebGL test #0: at (0, 16) expected: 255,0,0 was 0,255,0]
expected: FAIL

View file

@ -1,11 +1,5 @@
[tex-image-and-sub-image-2d-with-image-data-rgb565.html]
type: testharness
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas]
expected: FAIL
[WebGL test #0: at (0, 0) expected: 0,255,0,255 was 0,28,255,255]
expected: FAIL
[WebGL test #0: at (0, 0) expected: 0,255,0,255 was 0,0,0,0]
[WebGL test #0: at (0, 0) expected: 0,255,0,255 was 255,227,0,255]
expected: FAIL

View file

@ -1,8 +1,5 @@
[tex-image-and-sub-image-2d-with-image-data-rgba4444.html]
type: testharness
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas]
expected: FAIL
[WebGL test #0: at (0, 0) expected: 0,255,0,255 was 0,0,255,255]
[WebGL test #0: at (0, 0) expected: 0,255,0,255 was 255,255,0,255]
expected: FAIL

View file

@ -1,14 +1,5 @@
[tex-image-and-sub-image-2d-with-image-data-rgba5551.html]
type: testharness
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas]
expected: FAIL
[WebGL test #0: at (0, 0) expected: 0,255,0,255 was 0,24,255,255]
expected: FAIL
[WebGL test #0: at (0, 0) expected: 0,255,0,255 was 0,25,255,255]
expected: FAIL
[WebGL test #0: at (0, 0) expected: 0,255,0,255 was 0,0,0,0]
[WebGL test #0: at (0, 0) expected: 0,255,0,255 was 255,231,0,255]
expected: FAIL

View file

@ -1,8 +0,0 @@
[tex-image-and-sub-image-2d-with-image-data.html]
type: testharness
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas]
expected: FAIL
[WebGL test #0: at (0, 0) expected: 0,255,0,255 was 255,0,0,255]
expected: FAIL

View file

@ -1,8 +1,5 @@
[tex-image-and-sub-image-2d-with-image-rgb565.html]
type: testharness
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas]
expected: FAIL
[WebGL test #0: at (4, 4) expected: 0,255,0 was 0,28,255]
[WebGL test #0: at (4, 4) expected: 0,255,0 was 255,227,0]
expected: FAIL

View file

@ -1,8 +1,5 @@
[tex-image-and-sub-image-2d-with-image-rgba4444.html]
type: testharness
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas]
expected: FAIL
[WebGL test #0: at (4, 4) expected: 0,255,0 was 0,0,255]
[WebGL test #0: at (4, 4) expected: 0,255,0 was 255,255,0]
expected: FAIL

View file

@ -1,11 +1,5 @@
[tex-image-and-sub-image-2d-with-image-rgba5551.html]
type: testharness
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas]
expected: FAIL
[WebGL test #0: at (4, 4) expected: 0,255,0 was 0,24,255]
expected: FAIL
[WebGL test #0: at (4, 4) expected: 0,255,0 was 0,25,255]
[WebGL test #0: at (4, 4) expected: 0,255,0 was 255,231,0]
expected: FAIL

View file

@ -1,8 +0,0 @@
[tex-image-and-sub-image-2d-with-image.html]
type: testharness
[WebGL test #0: at (4, 4) expected: 0,255,0 was 255,0,0]
expected: FAIL
[WebGL test #0: at (4, 4) expected: 0,255,0 was 0,0,0]
expected: FAIL