mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Auto merge of #15122 - anholt:webgl-premultiply, r=emilio
webgl: premultiplication, y flipping, and format conversion <!-- Please describe your changes on the following line: --> This series implements a bunch of the texture unpack path features for WebGL. There are known issues with big-endian systems noted in the comments, but I don't know of a clean way to cast from `Vec<u16>` to `Vec<u8>` (which, if we had one, would make this code much cleaner anyway). --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- 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/15122) <!-- Reviewable:end -->
This commit is contained in:
commit
536c0d7499
19 changed files with 235 additions and 2343 deletions
File diff suppressed because it is too large
Load diff
|
@ -1,5 +0,0 @@
|
|||
[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]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[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]
|
||||
expected: FAIL
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
[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]
|
||||
expected: FAIL
|
||||
|
|
@ -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
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
[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]
|
||||
expected: FAIL
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
[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]
|
||||
expected: FAIL
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
[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]
|
||||
expected: FAIL
|
||||
|
|
@ -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
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
[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]
|
||||
expected: FAIL
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
[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]
|
||||
expected: FAIL
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
[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]
|
||||
expected: FAIL
|
||||
|
|
@ -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
|
||||
|
|
@ -36,39 +36,3 @@
|
|||
[WebGL test #35: at (0, 1) expected: 255,255,0,255 was 0,255,0,255]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #44: at (0, 1) expected: 255,0,0,255 was 255,0,255,255]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #45: at (0, 0) expected: 255,0,0,255 was 0,255,255,255]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #47: at (0, 0) expected: 0,255,0,255 was 255,0,255,255]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #50: at (0, 1) expected: 0,255,0,255 was 0,255,255,255]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #51: at (0, 0) expected: 255,0,255,255 was 0,0,255,255]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #54: at (0, 1) expected: 0,255,255,255 was 0,0,255,255]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #62: at (0, 1) expected: 0,255,0,255 was 255,0,0,255]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #63: at (0, 0) expected: 0,255,0,255 was 255,0,255,255]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #65: at (0, 0) expected: 0,0,255,255 was 255,0,0,255]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #68: at (0, 1) expected: 0,0,255,255 was 255,0,255,255]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #69: at (0, 0) expected: 255,0,0,255 was 255,255,0,255]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #72: at (0, 1) expected: 255,0,255,255 was 255,255,0,255]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue