[webkit-changes] [WebKit/WebKit] 313a88: [WebGPU] GPUCanvasContext.configure() should valid...
mwyrzykowski
noreply at github.com
Mon Mar 25 13:43:32 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 313a887ec859849a0dc903b18e664c09d64ade2e
https://github.com/WebKit/WebKit/commit/313a887ec859849a0dc903b18e664c09d64ade2e
Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
Date: 2024-03-25 (Mon, 25 Mar 2024)
Changed paths:
M Source/WebGPU/WebGPU/Device.h
M Source/WebGPU/WebGPU/PresentationContextIOSurface.mm
Log Message:
-----------
[WebGPU] GPUCanvasContext.configure() should validate the GPUTextureDescriptor before creating the backing textures
https://bugs.webkit.org/show_bug.cgi?id=271404
rdar://125183118
Reviewed by Tadeu Zagallo.
The spec says we should validate the texture descriptor before
creating the texures in GPUCanvasContext.configure() and we
were not doing so.
Doing so avoids crashes createTextureView() as the returned
texture is invalid.
* Source/WebGPU/WebGPU/Device.h:
* Source/WebGPU/WebGPU/PresentationContextIOSurface.mm:
(WebGPU::PresentationContextIOSurface::configure):
Canonical link: https://commits.webkit.org/276648@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list