Skip to content

Commit

Permalink
[WPE] Unconditionally enable the Mesa software rasterizer when runnin…
Browse files Browse the repository at this point in the history
…g tests

https://bugs.webkit.org/show_bug.cgi?id=274148

Reviewed by Carlos Garcia Campos.

We can't expect all the WPE post-commit test bots to have a GPU, so in order to improve test
reproducability independently from the test host graphics setup, enable the Mesa software
rasterizer.

* Tools/Scripts/webkitpy/port/wpe.py:
(WPEPort.setup_environ_for_server):

Canonical link: https://commits.webkit.org/278862@main
  • Loading branch information
philn committed May 16, 2024
1 parent 0b9db20 commit 5b512a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Tools/Scripts/webkitpy/port/wpe.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ def _driver_class(self):
def setup_environ_for_server(self, server_name=None):
environment = super(WPEPort, self).setup_environ_for_server(server_name)
environment['WEBKIT_NICOSIA_PAINTING_THREADS'] = '0'
if self.get_option('wpe_platform_api'):
environment['LIBGL_ALWAYS_SOFTWARE'] = '1'
environment['LIBGL_ALWAYS_SOFTWARE'] = '1'
self._copy_value_from_environ_if_set(environment, 'XR_RUNTIME_JSON')
self._copy_value_from_environ_if_set(environment, 'BREAKPAD_MINIDUMP_DIR')
return environment
Expand Down

0 comments on commit 5b512a4

Please sign in to comment.