Bug 229455

Summary: [Texmap][WebXR] Choose high power GPU when WebXR is enabled
Product: WebKit Reporter: Lauro Moura <lmoura>
Component: WebXRAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply, ifernandez, webkit-bug-importer, zdobersek
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=229111

Description Lauro Moura 2021-08-24 10:56:18 PDT
webxr/high-performance.html

240578@main / r281124 added an attribute to force the choice of a high-power GPU when WebXR is enabled. In WPE, as this attribute is ignored, and the test fails with:

--- /home/lauro/dev/WebKit/layout-test-results/webxr/high-performance-expected.txt                                                                                                                                                   
+++ /home/lauro/dev/WebKit/layout-test-results/webxr/high-performance-actual.txt                                                                                                                                                     
@@ -1,4 +1,4 @@                                                                                                                                                                                                                      
                                                                                                                                                                                                                                     
 Default: OK                                                                                                                                                                                                                         
-XR Compatible (should be high-performance): high-performance                                                                                                                                                                        
+XR Compatible (should be high-performance): default                                                                                                                                                                                 

Is this something we'll eventually want to support? Or something that we could just rebaseline?

PS: Just setting the attribute in the context constructor is enough to make the test pass. But without actually requesting the GPU, this feels kinda like "cheating" just to make it pass.
Comment 1 Radar WebKit Bug Importer 2021-08-31 10:57:22 PDT
<rdar://problem/82586983>