Bug 258598 - [WebXR] Use MTLTexture to attach color IOSurface
Summary: [WebXR] Use MTLTexture to attach color IOSurface
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebXR (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dan Glastonbury
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-06-27 19:05 PDT by Dan Glastonbury
Modified: 2023-06-28 17:34 PDT (History)
1 user (show)

See Also:


Attachments

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