Bug 258598

Summary: [WebXR] Use MTLTexture to attach color IOSurface
Product: WebKit Reporter: Dan Glastonbury <djg>
Component: WebXRAssignee: Dan Glastonbury <djg>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Dan Glastonbury 2023-06-27 19:05:12 PDT
There are two paths in WebXROpaqueFramebuffer for attaching compositor provided IOSurface for rendering: 1) Via MTLSharedTexture, and 2) Via pbuffer.

Since it's possible to create a MTLTexture from an IOSurface and plane index, switch away from using pbuffer to reduce the number of code paths.
Comment 1 Radar WebKit Bug Importer 2023-06-27 19:05:23 PDT
<rdar://problem/111426880>
Comment 2 Dan Glastonbury 2023-06-27 19:11:14 PDT
Pull request: https://github.com/WebKit/WebKit/pull/15354
Comment 3 EWS 2023-06-28 17:34:50 PDT
Committed 265606@main (d41c610090b0): <https://commits.webkit.org/265606@main>

Reviewed commits have been landed. Closing PR #15354 and removing active labels.