[Web GPU] GPUComputePassEncoder::dispatch number of thread groups, not grid size
authorjustin_fan@apple.com <justin_fan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2019 22:51:21 +0000 (22:51 +0000)
committerjustin_fan@apple.com <justin_fan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2019 22:51:21 +0000 (22:51 +0000)
commitf770f461968f1f14df86087cb62c85e72dda740a
treebbebf2dea0d2c207fd8f900ab5595feebe301529
parent4862caccc5c769529922cf4a6551e0e59a6cc71c
[Web GPU] GPUComputePassEncoder::dispatch number of thread groups, not grid size
https://bugs.webkit.org/show_bug.cgi?id=196984

Reviewed by Myles C. Maxfield.

Source/WebCore:

Test: Updated compute-squares.html.

* platform/graphics/gpu/cocoa/GPUComputePassEncoderMetal.mm:
(WebCore::GPUComputePassEncoder::dispatch):

LayoutTests:

* webgpu/compute-squares.html: One thread group is enough to process the data in a single pass.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244406 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/webgpu/compute-squares.html
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/gpu/cocoa/GPUComputePassEncoderMetal.mm