[webkit-changes] [WebKit/WebKit] e6c30a: [ANGLE] Speculative fix for div-by-zero in Dispatc...
Dan Glastonbury
noreply at github.com
Tue Apr 4 22:08:05 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e6c30af4dc921fc6b5dda474ccc432266ddff306
https://github.com/WebKit/WebKit/commit/e6c30af4dc921fc6b5dda474ccc432266ddff306
Author: Dan Glastonbury <djg at apple.com>
Date: 2023-04-04 (Tue, 04 Apr 2023)
Changed paths:
M Source/ThirdParty/ANGLE/changes.diff
M Source/ThirdParty/ANGLE/src/libANGLE/renderer/metal/mtl_render_utils.mm
Log Message:
-----------
[ANGLE] Speculative fix for div-by-zero in DispatchCompute
https://bugs.webkit.org/show_bug.cgi?id=255002
rdar://problem/106789544
Reviewed by Dean Jackson.
On some CPU configurations, divide-by-zero raises an exception. To avoid
dividing by zero on devices that don't have non-uniform dispatch, clamp
numThreads between 1 and threadExecutionWidth.
* Source/ThirdParty/ANGLE/src/libANGLE/renderer/metal/mtl_render_utils.mm:
Canonical link: https://commits.webkit.org/262609@main
More information about the webkit-changes
mailing list