Bug 229455 - [Texmap][WebXR] Choose high power GPU when WebXR is enabled
Summary: [Texmap][WebXR] Choose high power GPU when WebXR is enabled
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebXR (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-08-24 10:56 PDT by Lauro Moura
Modified: 2021-08-31 10:57 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>