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