@@ -1343,6 +1343,7 @@ def test_webgl_parallel_shader_compile(self):
1343
1343
self .btest_exit ('webgl_parallel_shader_compile.cpp' )
1344
1344
1345
1345
@requires_graphics_hardware
1346
+ @no_4gb ('readPixels fails: https://crbug.com/324992397' )
1346
1347
def test_webgl_explicit_uniform_location (self ):
1347
1348
self .btest_exit ('webgl_explicit_uniform_location.c' , args = ['-sGL_EXPLICIT_UNIFORM_LOCATION' , '-sMIN_WEBGL_VERSION=2' ])
1348
1349
@@ -1351,6 +1352,7 @@ def test_webgl_sampler_layout_binding(self):
1351
1352
self .btest_exit ('webgl_sampler_layout_binding.c' , args = ['-sGL_EXPLICIT_UNIFORM_BINDING' ])
1352
1353
1353
1354
@requires_graphics_hardware
1355
+ @no_4gb ('readPixels fails: https://crbug.com/324992397' )
1354
1356
def test_webgl2_ubo_layout_binding (self ):
1355
1357
self .btest_exit ('webgl2_ubo_layout_binding.c' , args = ['-sGL_EXPLICIT_UNIFORM_BINDING' , '-sMIN_WEBGL_VERSION=2' ])
1356
1358
@@ -1552,6 +1554,7 @@ def test_sdl_gl_read(self):
1552
1554
self .btest_exit ('test_sdl_gl_read.c' , args = ['-lSDL' , '-lGL' ])
1553
1555
1554
1556
@requires_graphics_hardware
1557
+ @no_4gb ('readPixels fails: https://crbug.com/324992397' )
1555
1558
def test_sdl_gl_mapbuffers (self ):
1556
1559
self .btest_exit ('test_sdl_gl_mapbuffers.c' , args = ['-sFULL_ES3' , '-lSDL' , '-lGL' ])
1557
1560
@@ -2522,7 +2525,7 @@ def test_runtime_misuse(self, mode):
2522
2525
var xhr = new XMLHttpRequest();
2523
2526
out('done timeout noted = ' + Module.noted);
2524
2527
assert(Module.noted);
2525
- xhr.open('GET', 'http://localhost:%s/report_result?' + HEAP32[Module.noted>>2 ]);
2528
+ xhr.open('GET', 'http://localhost:%s/report_result?' + HEAP32[Module.noted/4 ]);
2526
2529
xhr.send();
2527
2530
setTimeout(function() { window.close() }, 1000);
2528
2531
}, 0);
@@ -2768,6 +2771,7 @@ def test_webgl2(self, args):
2768
2771
2769
2772
# Tests the WebGL 2 glGetBufferSubData() functionality.
2770
2773
@requires_graphics_hardware
2774
+ @no_4gb ('getBufferSubData fails: https://crbug.com/325090165' )
2771
2775
def test_webgl2_get_buffer_sub_data (self ):
2772
2776
self .btest_exit ('webgl2_get_buffer_sub_data.cpp' , args = ['-sMAX_WEBGL_VERSION=2' , '-lGL' ])
2773
2777
@@ -2840,30 +2844,36 @@ def test_webgl2_packed_types(self):
2840
2844
self .btest_exit ('webgl2_draw_packed_triangle.c' , args = ['-lGL' , '-sMAX_WEBGL_VERSION=2' , '-sGL_ASSERTIONS' ])
2841
2845
2842
2846
@requires_graphics_hardware
2847
+ @no_4gb ('compressedTexSubImage2D fails: https://crbug.com/324562920' )
2843
2848
def test_webgl2_pbo (self ):
2844
2849
self .btest_exit ('webgl2_pbo.cpp' , args = ['-sMAX_WEBGL_VERSION=2' , '-lGL' ])
2845
2850
2846
2851
@no_firefox ('fails on CI likely due to GPU drivers there' )
2847
2852
@requires_graphics_hardware
2853
+ @no_4gb ('fails to render' )
2848
2854
def test_webgl2_sokol_mipmap (self ):
2849
2855
self .btest ('third_party/sokol/mipmap-emsc.c' , args = ['-sMAX_WEBGL_VERSION=2' , '-lGL' , '-O1' ],
2850
2856
reference = 'third_party/sokol/mipmap-emsc.png' , reference_slack = 2 )
2851
2857
2852
2858
@no_firefox ('fails on CI likely due to GPU drivers there' )
2859
+ @no_4gb ('fails to render' )
2853
2860
@requires_graphics_hardware
2854
2861
def test_webgl2_sokol_mrt (self ):
2855
2862
self .btest ('third_party/sokol/mrt-emcc.c' , args = ['-sMAX_WEBGL_VERSION=2' , '-lGL' ],
2856
2863
reference = 'third_party/sokol/mrt-emcc.png' )
2857
2864
2858
2865
@requires_graphics_hardware
2866
+ @no_4gb ('fails to render' )
2859
2867
def test_webgl2_sokol_arraytex (self ):
2860
2868
self .btest ('third_party/sokol/arraytex-emsc.c' , args = ['-sMAX_WEBGL_VERSION=2' , '-lGL' ],
2861
2869
reference = 'third_party/sokol/arraytex-emsc.png' )
2862
2870
2863
- def test_sdl_touch (self ):
2864
- for opts in [[], ['-O2' , '-g1' , '--closure=1' ]]:
2865
- print (opts )
2866
- self .btest_exit ('test_sdl_touch.c' , args = opts + ['-DAUTOMATE_SUCCESS=1' , '-lSDL' , '-lGL' ])
2871
+ @parameterized ({
2872
+ '' : ([],),
2873
+ 'closure' : (['-O2' , '-g1' , '--closure=1' ],),
2874
+ })
2875
+ def test_sdl_touch (self , opts ):
2876
+ self .btest_exit ('test_sdl_touch.c' , args = opts + ['-DAUTOMATE_SUCCESS=1' , '-lSDL' , '-lGL' ])
2867
2877
2868
2878
def test_html5_mouse (self ):
2869
2879
for opts in [[], ['-O2' , '-g1' , '--closure=1' ]]:
@@ -4700,9 +4710,9 @@ def test_webgl_draw_base_vertex_base_instance(self):
4700
4710
'-DWEBGL_CONTEXT_VERSION=2' ])
4701
4711
4702
4712
@requires_graphics_hardware
4713
+ @no_4gb ('fails to render' )
4703
4714
def test_webgl_sample_query (self ):
4704
- cmd = ['-sMAX_WEBGL_VERSION=2' , '-lGL' ]
4705
- self .btest_exit ('webgl_sample_query.cpp' , args = cmd )
4715
+ self .btest_exit ('webgl_sample_query.cpp' , args = ['-sMAX_WEBGL_VERSION=2' , '-lGL' ])
4706
4716
4707
4717
@requires_graphics_hardware
4708
4718
@parameterized ({
@@ -4758,6 +4768,7 @@ def test_webgl_offscreen_framebuffer_state_restoration(self):
4758
4768
4759
4769
# Tests that using an array of structs in GL uniforms works.
4760
4770
@requires_graphics_hardware
4771
+ @no_4gb ('fails to render' )
4761
4772
def test_webgl_array_of_structs_uniform (self ):
4762
4773
self .btest ('webgl_array_of_structs_uniform.c' , args = ['-lGL' , '-sMAX_WEBGL_VERSION=2' ], reference = 'browser/webgl_array_of_structs_uniform.png' )
4763
4774
0 commit comments