Ozone: Only use Starboard platform #5038
Open
+30
−26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This CL removes Ozone auto platforms and leaves only Starboard.
This in turn removes Angle X11 support (see GN logic here). Many unittests that are passing on ToT start failing as consequence, concretely I tried
cc_unittests
,viz_unittests
,gpu_unittests
,gl_unittests
andozone_unittests
.The first reason for failing is that
ozone_platform_starboard.cc
starts failing due to injecting the flag which hits this DCHECK. Once that injection is removed, then theInitializeOneOffHelper()
logic (which is only used for tests) tries to initialize Angle Sw backend, SwANGLE, which is what we want for unit tests (of course not for integration tests).This SwANGLE in turn fails due to trying to initialize the actual machine Display. We don't want that for unit tests, so a new GN flag needs to be added to tell Angle to not draw on the screen when using SwANGLE:
angle_use_vulkan_null_display
is also set in this CL (SwANGLE uses vulkan behind the scenes).With this CL
cc_unittests
,viz_unittests
,gpu_unittests
,gl_unittests
andozone_unittests
are passing on my gLinux (amd, mesa radeon etc).