Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WebXR] Copy rate map samples into IPC message #29738

Conversation

djg
Copy link
Contributor

@djg djg commented Jun 12, 2024

8ad29aa

[WebXR] Copy rate map samples into IPC message
https://bugs.webkit.org/show_bug.cgi?id=275389
rdar://129658002

Reviewed by Mike Wyrzykowski and Kimmo Kinnunen.

Intermittent corruption of WebXR rendering has been observed which is resulting
from a corruption of the first few horizontal samples for the rasterization rate
maps to support static foveation between creating the message payload and the
point at which the message is sent over IPC.

This change copies the rate map samples into the message, storing them in
Vectors.

* Source/WebCore/Modules/webxr/WebXROpaqueFramebufferCocoa.cpp:
(WebCore::WebXROpaqueFramebuffer::setupFramebuffer):
* Source/WebCore/platform/xr/PlatformXR.h:
* Source/WebKit/Shared/XR/PlatformXR.serialization.in:

Canonical link: https://commits.webkit.org/279972@main

aa27eac

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe βœ… πŸ›  wincairo
βœ… πŸ§ͺ bindings βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug βœ… πŸ§ͺ wpe-wk2 βœ… πŸ§ͺ wincairo-tests
βœ… πŸ§ͺ webkitperl βœ… πŸ§ͺ ios-wk2 βœ… πŸ§ͺ api-mac βœ… πŸ§ͺ api-wpe
βœ… πŸ§ͺ ios-wk2-wpt βœ… πŸ§ͺ mac-wk1 βœ… πŸ›  wpe-cairo
⏳ πŸ§ͺ api-ios βœ… πŸ§ͺ mac-wk2 βœ… πŸ›  gtk
βœ… πŸ›  tv βœ… πŸ§ͺ mac-AS-debug-wk2 βœ… πŸ§ͺ gtk-wk2
βœ… πŸ›  tv-sim βœ… πŸ§ͺ mac-wk2-stress βœ… πŸ§ͺ api-gtk
βœ… πŸ›  watch
βœ… πŸ›  πŸ§ͺ unsafe-merge βœ… πŸ›  watch-sim

@djg djg self-assigned this Jun 12, 2024
@djg djg added the WebXR For bugs in WebXR label Jun 12, 2024
@djg djg force-pushed the eng/WebXR-Copy-rate-map-samples-into-IPC-message branch from b42d1a8 to aa27eac Compare June 12, 2024 07:54
@djg djg changed the title [WebXR} Copy rate map samples into IPC message [WebXR] Copy rate map samples into IPC message Jun 12, 2024
@djg djg added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Jun 13, 2024
https://bugs.webkit.org/show_bug.cgi?id=275389
rdar://129658002

Reviewed by Mike Wyrzykowski and Kimmo Kinnunen.

Intermittent corruption of WebXR rendering has been observed which is resulting
from a corruption of the first few horizontal samples for the rasterization rate
maps to support static foveation between creating the message payload and the
point at which the message is sent over IPC.

This change copies the rate map samples into the message, storing them in
Vectors.

* Source/WebCore/Modules/webxr/WebXROpaqueFramebufferCocoa.cpp:
(WebCore::WebXROpaqueFramebuffer::setupFramebuffer):
* Source/WebCore/platform/xr/PlatformXR.h:
* Source/WebKit/Shared/XR/PlatformXR.serialization.in:

Canonical link: https://commits.webkit.org/279972@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/WebXR-Copy-rate-map-samples-into-IPC-message branch from aa27eac to 8ad29aa Compare June 13, 2024 01:28
@webkit-commit-queue
Copy link
Collaborator

Committed 279972@main (8ad29aa): https://commits.webkit.org/279972@main

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

@webkit-commit-queue webkit-commit-queue merged commit 8ad29aa into WebKit:main Jun 13, 2024
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Jun 13, 2024
@djg djg deleted the eng/WebXR-Copy-rate-map-samples-into-IPC-message branch June 13, 2024 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebXR For bugs in WebXR
Projects
None yet
5 participants