Commit graph

153 commits

Author SHA1 Message Date
Ngo Iok Ui (Wu Yu Wei)
34c31ee418
WebGL2: support TexImage3D (#37718)
Add TexImage3D method to WebGL2RenderingContext

Testing: conformance2 should pass. Also it should get
http://webglsamples.org/WebGL2Samples/#texture_2d_array and
http://webglsamples.org/WebGL2Samples/#texture_3d running.
Fixes: #26511

Now Servo can run texture_2d_array and texture_3d samples!

![圖片](https://github.com/user-attachments/assets/41b87563-08b8-4db3-b503-12f3a61dbed7)

![圖片](https://github.com/user-attachments/assets/3c62a4de-35ea-488d-b2e5-00e3aed52090)

And it can now run three.js too!

![圖片](https://github.com/user-attachments/assets/d880aa92-a154-4895-aa06-b7919d1fc869)

---------

Signed-off-by: Wu Yu Wei <yuweiwu@pm.me>
2025-07-09 14:22:03 +00:00
Oriol Brufau
428e8f7dd8
Enable all experimental web platform features on all testsuites (#36519)
This affects the following testsuites:
 - tests/wpt/tests/
 - tests/wpt/mozilla/tests/
 - tests/wpt/webgl/tests/
 - tests/wpt/webgpu/tests/

Testing: Several tests improve
This is part of #36315

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-04-14 18:33:38 +00:00
Samson
5853c00628
Remove message from WebGL subtest name and remove stale expectations (#35791)
* Remove message from WebGL subtest name

This causes stale expectations: https://github.com/servo/servo/issues/35750

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Update expectations

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2025-03-12 09:08:39 +00:00
Martin Robinson
0e616e0c5d
api: Flatten and simplify Servo preferences (#34966)
Flatten and simplify Servo's preferences code. In addition, have both
preferences and options passed in as arguments to `Servo::new()` and
make sure not to use the globally set preferences in `servoshell` (as
much as possible now).

Instead of a complex procedural macro to generate preferences, just
expose a very simple derive macro that adds string based getters and
setters.

- All command-line parsing is moved to servoshell.
- There is no longer the concept of a missing preference.
- Preferences no longer have to be part of the resources bundle because
  they now have reasonable default values.
- servoshell specific preferences are no longer part of the preferences
  exposed by the Servo API.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-01-14 13:54:06 +00:00
Josh Matthews
4bdd246a6b
Make webgl test preferences more consistent. (#34886)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2025-01-08 08:02:43 +00:00
Josh Matthews
c43762faea
Add initial support for WebGL 2 BlitFramebuffer (#26389)
Add initial support for the WebGL2 BlitFramebuffer call.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Istvan <istvan.miklos@h-lab.eu>
2025-01-06 18:37:35 +00:00
chickenleaf
1f0b88934b
script: Throw a TypeError when trying to create an OffscreenCanvas with an unknown context type (#34276)
* fixing test failures that involves throwing TypeError

Signed-off-by: L Ashwin B <lashwinib@gmail.com>

* handle all unknown values in a single fallback case

Signed-off-by: L Ashwin B <lashwinib@gmail.com>

* updating few more test- expectations

Signed-off-by: L Ashwin B <lashwinib@gmail.com>

---------

Signed-off-by: L Ashwin B <lashwinib@gmail.com>
2024-11-21 22:53:52 +00:00
Samson
063071ba72
Replace sparkle with glow in components/canvas (#33918)
* Replace sparkle with glow in components/canvas

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Replace safe_gl with #34300

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2024-11-20 09:05:24 +00:00
Josh Matthews
5d1d3d6b5a
Update webgl conformance tests (#33121)
* Update python -> python3 for helper script.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Update webgl conformance testsuite patches.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Import WebGL conformance testsuite for August 19, 2024.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Update expected results.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Track the commit used for webgl conformance test import.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2024-11-04 04:27:29 +00:00
Daniel Adams
1ef3e107bd
Add makeXRCompatible for WebGL2, update WebXR WPT expectations (#33097)
* Add makeXRCompatible to WebGLRenderContextBase

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Activate webgl2 for webxr wpt, update meta expectations

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Update meta legacy layout expectations

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Remove no longer existing expectations from meta files

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Remove files for fully passing tests

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Remove out-of-date expectations from meta legacy layout

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Update webgl conformance expectations

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Fix test numbering in expectations

Signed-off-by: Daniel Adams <msub2official@gmail.com>

---------

Signed-off-by: Daniel Adams <msub2official@gmail.com>
2024-08-18 10:37:14 +00:00
Martin Robinson
1e503c3bc1
wpt: Update some tests results (#31364)
This test has started failing on CI for some reason.
2024-02-16 09:37:47 +00:00
Smitty
436e949296
layout: return None bounding box when no nodes found (#31253)
Signed-off-by: syvb <me@iter.ca>
2024-02-02 23:24:20 +00:00
Oriol Brufau
963104e5fc
Run same tests for layout-2020 and layout-2013 (#30092)
Most tests were only being run for layout-2013, not for layout-2020.
This wasn't great since layout-2020 is now the default.

So this patch unifies the lists of included tests for both layouts.
For layout-2013 this implies adding css/css-content/, css/css-logical/
and css/css-masking/clip/.
For layout-2020 this implies adding several additional css tests, and
also tests like dom/, js/, html/, etc.
2023-08-15 00:28:32 +00:00
WPT Sync Bot
ea44238f3a Update web-platform-tests to revision b'6aa16a6888fcf6dd3ee2eac2e911c2d7c353d193' 2023-04-25 11:40:51 +00:00
WPT Sync Bot
40def0914a Update web-platform-tests to revision b'a3cb53d786edfd9106825e312866624150382075' 2023-04-23 01:36:19 +00:00
WPT Sync Bot
75286b8eab Update web-platform-tests to revision b'f0b66362cc5dec54d81e0a56458b48f310a2eba9' 2023-04-16 01:29:26 +00:00
WPT Sync Bot
b8f194326b Update web-platform-tests to revision b'a877a8f14afc4b3a1d438cd5a9bfd7cd029111b7' 2023-04-12 01:24:06 +00:00
WPT Sync Bot
8101fa5636 Update web-platform-tests to revision b'5857a9b5776d85fe77883fadf62c398dc05cf608' 2023-04-08 01:38:03 +00:00
WPT Sync Bot
bb34f95b33 Update web-platform-tests to revision b'1d9b01e2fad6af3a057d571b1e088e15fa9bc8e6' 2023-04-07 01:30:49 +00:00
WPT Sync Bot
61b963c73e Update web-platform-tests to revision b'bcf4a27c0a9dbb07d974a880acb26eb289a85c7e' 2023-02-17 01:52:51 +00:00
WPT Sync Bot
41d386c907 Update web-platform-tests to revision b'5656a2f4653b5894c500b724778009ca9a26e48c' 2022-12-23 01:34:56 +00:00
Paulo E. Castro
03b3d677f0
Amend test expectations. 2021-04-28 22:31:36 +01:00
WPT Sync Bot
b99372177f Update web-platform-tests to revision b'd04481569b4924284b8dd53b6430ef67de54073f' 2021-02-28 09:46:29 +00:00
WPT Sync Bot
87be1008de Update web-platform-tests to revision b'7af9d6ec48ab04043a2bea85a3599904a1a19efa' 2021-02-21 11:31:07 -05:00
Josh Matthews
f73370088b Update WPT results. 2021-02-18 09:35:46 -05:00
WPT Sync Bot
964f9a5544 Update web-platform-tests to revision 3b17f29d98e9f39a4836a7450f9fe992f3cc0e7b 2021-01-21 10:35:13 +00:00
WPT Sync Bot
07d0496acd Update web-platform-tests to revision a7e1722f0aefeca4ad47312b618c0b47b07e061f 2021-01-18 10:46:49 +00:00
WPT Sync Bot
02952b63dd Update web-platform-tests to revision 5e0db3c717532a88040300e65ce7c8b29004d93c 2021-01-15 17:03:21 -05:00
WPT Sync Bot
b960606d13 Update web-platform-tests to revision 2ccf303ec934a8adfc613c2a73395a31956ec817 2020-12-24 10:58:38 +00:00
WPT Sync Bot
b60f782258 Update web-platform-tests to revision 14e5eb0fbe4ed1c9c6ca6d980b3c71434fd1bcad 2020-12-17 10:43:37 +00:00
WPT Sync Bot
fa3a407699 Update web-platform-tests to revision 431d16dc58b4e276add7d569cce302d8d246b299 2020-12-08 11:02:40 +00:00
WPT Sync Bot
6764feaa1e Update web-platform-tests to revision 4ac59dc8fb85817b4cf8fc801b524ed74743d2c1 2020-12-03 10:36:08 +00:00
WPT Sync Bot
775b941c48 Update web-platform-tests to revision d21eaee14bab28a8bd57727d41330d0bef170a92 2020-11-23 10:43:59 +00:00
WPT Sync Bot
b89132d428 Update web-platform-tests to revision cb32b4d04799e9de2e2505d7dddfab1429247070 2020-11-21 10:23:51 +00:00
WPT Sync Bot
4fcc308130 Update web-platform-tests to revision af2796bc4ea941309f2f1f55c05e81b1dcef7ffb 2020-10-31 10:49:39 +00:00
WPT Sync Bot
397eb31eef Update web-platform-tests to revision 9a3ff40283ad3fca7299385b82c9b11c05ff7862 2020-10-26 10:58:07 +00:00
WPT Sync Bot
3becf15667 Update web-platform-tests to revision 0f986ae5b0865c0bef78e41e35d144e30a14b2e7 2020-08-17 10:54:48 +00:00
WPT Sync Bot
594dfab11c Update web-platform-tests to revision 6c36430fc9e5ae99b06eba617f557e0271dd78b7 2020-08-14 10:50:54 +00:00
WPT Sync Bot
f1ca6b4be4 Update web-platform-tests to revision ad99a9e949c6006cc0f609501de77a0edb1e593a 2020-08-05 10:31:54 +00:00
WPT Sync Bot
1cd53da938 Update web-platform-tests to revision 8b1aea6eed110e7900f1df933b24945fbb3c8229 2020-08-04 10:55:37 +00:00
WPT Sync Bot
bd0b0ea24a Update web-platform-tests to revision 593d7eb21e1c3ac161aa51cce914056eb9182962 2020-07-24 10:57:09 +00:00
WPT Sync Bot
757411a74c Update web-platform-tests to revision d62995e62ca8653b4cf565e61c309471b544fab8 2020-07-21 10:51:44 +00:00
WPT Sync Bot
986610f6ed Update web-platform-tests to revision 8ba782c9d5a545b850cd8920032cb14cfbab2c35 2020-07-17 10:13:18 +00:00
WPT Sync Bot
0640476cc1 Update web-platform-tests to revision 29ccbdbf25c92cf783a1c3a804d723382fb6a50a 2020-07-12 10:23:20 +00:00
WPT Sync Bot
e447ba9856 Update web-platform-tests to revision e3698c7bb3c309df69134e9bc0a375f00535e226 2020-07-07 10:52:27 +00:00
Josh Matthews
795560ad52 webgl: Add stub isContextLost API. 2020-07-03 14:47:06 -04:00
WPT Sync Bot
c80439a8ff Update web-platform-tests to revision 99a09c73e7f1d7b19ec4be2eb8ce2d3bebf52245 2020-07-02 10:54:07 +00:00
WPT Sync Bot
b435224233 Update web-platform-tests to revision b89d7ff93b5076d389404f2a062b83e73754307f 2020-07-01 11:14:37 +00:00
WPT Sync Bot
e89aad0a30 Update web-platform-tests to revision 56ac936e7ad12aa22ecf12e43d560a8039522677 2020-06-26 10:31:21 +00:00
WPT Sync Bot
a4cebda3db Update web-platform-tests to revision fa5f0edd48aca7acfa7d35f1be31cb0dd65817c6 2020-06-25 11:01:24 +00:00