@@ -2023,27 +2023,23 @@ def test_gl_textures(self, args):
2023
2023
self .btest_exit ('gl_textures.cpp' , args = ['-lGL' , '-g' , '-sSTACK_SIZE=1MB' ] + args )
2024
2024
2025
2025
@requires_graphics_hardware
2026
- @no_wasm64 ('TODO: wasm64 + LEGACY_GL_EMULATION' )
2027
2026
def test_gl_ps (self ):
2028
2027
# pointers and a shader
2029
2028
shutil .copyfile (test_file ('screenshot.png' ), 'screenshot.png' )
2030
2029
self .btest ('gl_ps.c' , reference = 'gl_ps.png' , args = ['--preload-file' , 'screenshot.png' , '-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' , '--use-preload-plugins' ], reference_slack = 1 )
2031
2030
2032
2031
@requires_graphics_hardware
2033
- @no_wasm64 ('TODO: wasm64 + LEGACY_GL_EMULATION' )
2034
2032
def test_gl_ps_packed (self ):
2035
2033
# packed data that needs to be strided
2036
2034
shutil .copyfile (test_file ('screenshot.png' ), 'screenshot.png' )
2037
2035
self .btest ('gl_ps_packed.c' , reference = 'gl_ps.png' , args = ['--preload-file' , 'screenshot.png' , '-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' , '--use-preload-plugins' ], reference_slack = 1 )
2038
2036
2039
2037
@requires_graphics_hardware
2040
- @no_wasm64 ('TODO: wasm64 + LEGACY_GL_EMULATION' )
2041
2038
def test_gl_ps_strides (self ):
2042
2039
shutil .copyfile (test_file ('screenshot.png' ), 'screenshot.png' )
2043
2040
self .btest ('gl_ps_strides.c' , reference = 'gl_ps_strides.png' , args = ['--preload-file' , 'screenshot.png' , '-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' , '--use-preload-plugins' ])
2044
2041
2045
2042
@requires_graphics_hardware
2046
- @no_wasm64 ('TODO: wasm64 + LEGACY_GL_EMULATION' )
2047
2043
def test_gl_ps_worker (self ):
2048
2044
shutil .copyfile (test_file ('screenshot.png' ), 'screenshot.png' )
2049
2045
self .btest ('gl_ps_worker.c' , reference = 'gl_ps.png' , args = ['--preload-file' , 'screenshot.png' , '-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' , '--use-preload-plugins' ], reference_slack = 1 , also_proxied = True )
@@ -2076,37 +2072,31 @@ def test_gles2_conformance(self):
2076
2072
def test_matrix_identity (self ):
2077
2073
self .btest ('gl_matrix_identity.c' , expected = ['-1882984448' , '460451840' , '1588195328' , '2411982848' ], args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ])
2078
2074
2079
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2080
2075
@requires_graphics_hardware
2081
2076
@no_swiftshader
2082
2077
def test_cubegeom_pre (self ):
2083
2078
self .btest ('third_party/cubegeom/cubegeom_pre.c' , reference = 'third_party/cubegeom/cubegeom_pre.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ])
2084
2079
2085
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2086
2080
@requires_graphics_hardware
2087
2081
@no_swiftshader
2088
2082
def test_cubegeom_pre_regal (self ):
2089
2083
self .btest ('third_party/cubegeom/cubegeom_pre.c' , reference = 'third_party/cubegeom/cubegeom_pre.png' , args = ['-sUSE_REGAL' , '-DUSE_REGAL' , '-lGL' , '-lSDL' ])
2090
2084
2091
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2092
2085
@requires_graphics_hardware
2093
2086
@no_swiftshader
2094
2087
def test_cubegeom_pre_relocatable (self ):
2095
2088
self .btest ('third_party/cubegeom/cubegeom_pre.c' , reference = 'third_party/cubegeom/cubegeom_pre.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' , '-sRELOCATABLE' ])
2096
2089
2097
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2098
2090
@requires_graphics_hardware
2099
2091
@no_swiftshader
2100
2092
def test_cubegeom_pre2 (self ):
2101
2093
self .btest ('third_party/cubegeom/cubegeom_pre2.c' , reference = 'third_party/cubegeom/cubegeom_pre2.png' , args = ['-sGL_DEBUG' , '-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ]) # some coverage for GL_DEBUG not breaking the build
2102
2094
2103
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2104
2095
@requires_graphics_hardware
2105
2096
@no_swiftshader
2106
2097
def test_cubegeom_pre3 (self ):
2107
2098
self .btest ('third_party/cubegeom/cubegeom_pre3.c' , reference = 'third_party/cubegeom/cubegeom_pre2.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ])
2108
2099
2109
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2110
2100
@parameterized ({
2111
2101
'' : ([],),
2112
2102
'tracing' : (['-sTRACE_WEBGL_CALLS' ],),
@@ -2117,18 +2107,15 @@ def test_cubegeom(self, args):
2117
2107
# proxied)
2118
2108
self .btest ('third_party/cubegeom/cubegeom.c' , reference = 'third_party/cubegeom/cubegeom.png' , args = ['-O2' , '-g' , '-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ] + args , also_proxied = not args )
2119
2109
2120
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2121
2110
@requires_graphics_hardware
2122
2111
def test_cubegeom_regal (self ):
2123
2112
self .btest ('third_party/cubegeom/cubegeom.c' , reference = 'third_party/cubegeom/cubegeom.png' , args = ['-O2' , '-g' , '-DUSE_REGAL' , '-sUSE_REGAL' , '-lGL' , '-lSDL' , '-lc++' , '-lc++abi' ], also_proxied = True )
2124
2113
2125
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2126
2114
@requires_threads
2127
2115
@requires_graphics_hardware
2128
2116
def test_cubegeom_regal_mt (self ):
2129
2117
self .btest ('third_party/cubegeom/cubegeom.c' , reference = 'third_party/cubegeom/cubegeom.png' , args = ['-O2' , '-g' , '-pthread' , '-DUSE_REGAL' , '-pthread' , '-sUSE_REGAL' , '-lGL' , '-lSDL' , '-lc++' , '-lc++abi' ], also_proxied = False )
2130
2118
2131
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2132
2119
@requires_graphics_hardware
2133
2120
@parameterized ({
2134
2121
'' : ([],),
@@ -2151,108 +2138,88 @@ def test_cubegeom_proc(self, opts):
2151
2138
''' )
2152
2139
self .btest ('third_party/cubegeom/cubegeom_proc.c' , reference = 'third_party/cubegeom/cubegeom.png' , args = opts + ['side.c' , '-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' , '-sGL_ENABLE_GET_PROC_ADDRESS' ])
2153
2140
2154
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2155
2141
@also_with_wasmfs
2156
2142
@requires_graphics_hardware
2157
2143
def test_cubegeom_glew (self ):
2158
2144
self .btest ('third_party/cubegeom/cubegeom_glew.c' , reference = 'third_party/cubegeom/cubegeom.png' , args = ['-O2' , '--closure=1' , '-sLEGACY_GL_EMULATION' , '-lGL' , '-lGLEW' , '-lSDL' ])
2159
2145
2160
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2161
2146
@requires_graphics_hardware
2162
2147
def test_cubegeom_color (self ):
2163
2148
self .btest ('third_party/cubegeom/cubegeom_color.c' , reference = 'third_party/cubegeom/cubegeom_color.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ])
2164
2149
2165
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2166
2150
@requires_graphics_hardware
2167
2151
def test_cubegeom_normal (self ):
2168
2152
self .btest ('third_party/cubegeom/cubegeom_normal.c' , reference = 'third_party/cubegeom/cubegeom_normal.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ], also_proxied = True )
2169
2153
2170
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2171
2154
@requires_graphics_hardware
2172
2155
def test_cubegeom_normal_dap (self ): # draw is given a direct pointer to clientside memory, no element array buffer
2173
2156
self .btest ('third_party/cubegeom/cubegeom_normal_dap.c' , reference = 'third_party/cubegeom/cubegeom_normal.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ], also_proxied = True )
2174
2157
2175
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2176
2158
@requires_graphics_hardware
2177
2159
def test_cubegeom_normal_dap_far (self ): # indices do nto start from 0
2178
2160
self .btest ('third_party/cubegeom/cubegeom_normal_dap_far.c' , reference = 'third_party/cubegeom/cubegeom_normal.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ])
2179
2161
2180
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2181
2162
@requires_graphics_hardware
2182
2163
def test_cubegeom_normal_dap_far_range (self ): # glDrawRangeElements
2183
2164
self .btest ('third_party/cubegeom/cubegeom_normal_dap_far_range.c' , reference = 'third_party/cubegeom/cubegeom_normal.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ])
2184
2165
2185
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2186
2166
@requires_graphics_hardware
2187
2167
def test_cubegeom_normal_dap_far_glda (self ): # use glDrawArrays
2188
2168
self .btest ('third_party/cubegeom/cubegeom_normal_dap_far_glda.c' , reference = 'third_party/cubegeom/cubegeom_normal_dap_far_glda.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ])
2189
2169
2190
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2191
2170
@requires_graphics_hardware
2192
2171
@no_firefox ('fails on CI but works locally' )
2193
2172
def test_cubegeom_normal_dap_far_glda_quad (self ): # with quad
2194
2173
self .btest ('third_party/cubegeom/cubegeom_normal_dap_far_glda_quad.c' , reference = 'third_party/cubegeom/cubegeom_normal_dap_far_glda_quad.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ])
2195
2174
2196
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2197
2175
@requires_graphics_hardware
2198
2176
def test_cubegeom_mt (self ):
2199
2177
self .btest ('third_party/cubegeom/cubegeom_mt.c' , reference = 'third_party/cubegeom/cubegeom_mt.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ]) # multitexture
2200
2178
2201
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2202
2179
@requires_graphics_hardware
2203
2180
def test_cubegeom_color2 (self ):
2204
2181
self .btest ('third_party/cubegeom/cubegeom_color2.c' , reference = 'third_party/cubegeom/cubegeom_color2.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ], also_proxied = True )
2205
2182
2206
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2207
2183
@requires_graphics_hardware
2208
2184
def test_cubegeom_texturematrix (self ):
2209
2185
self .btest ('third_party/cubegeom/cubegeom_texturematrix.c' , reference = 'third_party/cubegeom/cubegeom_texturematrix.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ])
2210
2186
2211
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2212
2187
@requires_graphics_hardware
2213
2188
def test_cubegeom_fog (self ):
2214
2189
self .btest ('third_party/cubegeom/cubegeom_fog.c' , reference = 'third_party/cubegeom/cubegeom_fog.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ])
2215
2190
2216
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2217
2191
@requires_graphics_hardware
2218
2192
@no_swiftshader
2219
2193
def test_cubegeom_pre_vao (self ):
2220
2194
self .btest ('third_party/cubegeom/cubegeom_pre_vao.c' , reference = 'third_party/cubegeom/cubegeom_pre_vao.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ])
2221
2195
2222
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2223
2196
@requires_graphics_hardware
2224
2197
@no_swiftshader
2225
2198
def test_cubegeom_pre_vao_regal (self ):
2226
2199
self .btest ('third_party/cubegeom/cubegeom_pre_vao.c' , reference = 'third_party/cubegeom/cubegeom_pre_vao.png' , args = ['-sUSE_REGAL' , '-DUSE_REGAL' , '-lGL' , '-lSDL' ])
2227
2200
2228
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2229
2201
@requires_graphics_hardware
2230
2202
@no_swiftshader
2231
2203
def test_cubegeom_pre2_vao (self ):
2232
2204
self .btest ('third_party/cubegeom/cubegeom_pre2_vao.c' , reference = 'third_party/cubegeom/cubegeom_pre_vao.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' , '-sGL_ENABLE_GET_PROC_ADDRESS' ])
2233
2205
2234
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2235
2206
@requires_graphics_hardware
2236
2207
def test_cubegeom_pre2_vao2 (self ):
2237
2208
self .btest ('third_party/cubegeom/cubegeom_pre2_vao2.c' , reference = 'third_party/cubegeom/cubegeom_pre2_vao2.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' , '-sGL_ENABLE_GET_PROC_ADDRESS' ])
2238
2209
2239
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2240
2210
@requires_graphics_hardware
2241
2211
@no_swiftshader
2242
2212
def test_cubegeom_pre_vao_es (self ):
2243
2213
self .btest ('third_party/cubegeom/cubegeom_pre_vao_es.c' , reference = 'third_party/cubegeom/cubegeom_pre_vao.png' , args = ['-sFULL_ES2' , '-lGL' , '-lSDL' ])
2244
2214
2245
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2246
2215
@requires_graphics_hardware
2247
2216
def test_cubegeom_u4fv_2 (self ):
2248
2217
self .btest ('third_party/cubegeom/cubegeom_u4fv_2.c' , reference = 'third_party/cubegeom/cubegeom_u4fv_2.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ])
2249
2218
2250
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2251
2219
@requires_graphics_hardware
2252
2220
def test_cube_explosion (self ):
2253
2221
self .btest ('cube_explosion.c' , reference = 'cube_explosion.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ], also_proxied = True )
2254
2222
2255
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2256
2223
@requires_graphics_hardware
2257
2224
def test_glgettexenv (self ):
2258
2225
self .btest ('glgettexenv.c' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ], expected = '1' )
@@ -2337,7 +2304,6 @@ def test_anisotropic(self):
2337
2304
shutil .copyfile (test_file ('browser/water.dds' ), 'water.dds' )
2338
2305
self .btest ('test_anisotropic.c' , reference = 'browser/test_anisotropic.png' , reference_slack = 2 , args = ['--preload-file' , 'water.dds' , '-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' , '-Wno-incompatible-pointer-types' ])
2339
2306
2340
- @no_wasm64 ('wasm64 + LEGACY_GL_EMULATION' )
2341
2307
@requires_graphics_hardware
2342
2308
def test_tex_nonbyte (self ):
2343
2309
self .btest ('tex_nonbyte.c' , reference = 'tex_nonbyte.png' , args = ['-sLEGACY_GL_EMULATION' , '-lGL' , '-lSDL' ])
0 commit comments