Bug 201162 - [WHLSL] Rewrite all tests to use WHLSL and delete the isWHLSL flag
Summary: [WHLSL] Rewrite all tests to use WHLSL and delete the isWHLSL flag
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-08-26 17:20 PDT by Myles C. Maxfield
Modified: 2019-08-26 21:59 PDT (History)
11 users (show)

See Also:


Attachments
Patch (120.40 KB, patch)
2019-08-26 17:21 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (152.48 KB, patch)
2019-08-26 19:09 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (135.24 KB, patch)
2019-08-26 19:29 PDT, Myles C. Maxfield
saam: review+
commit-queue: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2019-08-26 17:20:02 PDT
[WHLSL] Make WHLSL the default shading language for WebGPU
Comment 1 Myles C. Maxfield 2019-08-26 17:21:41 PDT
Created attachment 377297 [details]
Patch
Comment 2 Justin Fan 2019-08-26 17:42:16 PDT
Comment on attachment 377297 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=377297&action=review

> LayoutTests/webgpu/whlsl/js/test-harness.js:315
> +        if (this.isMSL) {

should this be "!this.isMSL"?
Comment 3 Myles C. Maxfield 2019-08-26 17:44:14 PDT
Comment on attachment 377297 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=377297&action=review

>> LayoutTests/webgpu/whlsl/js/test-harness.js:315
>> +        if (this.isMSL) {
> 
> should this be "!this.isMSL"?

Yes, it looks like it should! This must not be tested, though, because all the tests pass. I'll fix it regardless, though.
Comment 4 Robin Morisset 2019-08-26 17:49:46 PDT
Comment on attachment 377297 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=377297&action=review

r=me too.

> LayoutTests/webgpu/render-pipeline-errors.html:-190
> -</body>

Is this change intended?
Comment 5 Myles C. Maxfield 2019-08-26 19:09:30 PDT
Created attachment 377308 [details]
Patch
Comment 6 Saam Barati 2019-08-26 19:15:22 PDT
Comment on attachment 377308 [details]
Patch

Can you please keep around an isMSL flag? I use that a lot, and I'd be sad to see it go.
Comment 7 Myles C. Maxfield 2019-08-26 19:29:06 PDT
Created attachment 377310 [details]
Patch
Comment 8 Saam Barati 2019-08-26 19:33:05 PDT
Comment on attachment 377310 [details]
Patch

Thanks! r=me
Comment 9 WebKit Commit Bot 2019-08-26 20:19:15 PDT
Comment on attachment 377310 [details]
Patch

Rejecting attachment 377310 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-01', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 377310, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 5000 characters of output:
rtyresolver/indexer-ander-lvalue.html
	M	LayoutTests/webgpu/whlsl/propertyresolver/indexer-ander.html
	M	LayoutTests/webgpu/whlsl/propertyresolver/indexer-getter.html
	M	LayoutTests/webgpu/whlsl/propertyresolver/indexer-setter-abstract-lvalue-3-levels.html
	M	LayoutTests/webgpu/whlsl/propertyresolver/indexer-setter-abstract-lvalue.html
	M	LayoutTests/webgpu/whlsl/propertyresolver/indexer-setter-lvalue.html
	M	LayoutTests/webgpu/whlsl/propertyresolver/indexer-setter.html
	M	LayoutTests/webgpu/whlsl/propertyresolver/setter-abstract-lvalue-3-levels.html
	M	LayoutTests/webgpu/whlsl/propertyresolver/setter-abstract-lvalue.html
	M	LayoutTests/webgpu/whlsl/propertyresolver/setter-lvalue.html
	M	LayoutTests/webgpu/whlsl/read-modify-write-high-zombies.html
	M	LayoutTests/webgpu/whlsl/read-modify-write.html
	M	LayoutTests/webgpu/whlsl/return-local-variable.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-10.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-11.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-12.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-13.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-14.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-15.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-16.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-17.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-18.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-19.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-2.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-20.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-21.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-22.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-23.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-24.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-25.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-26.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-27.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-3.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-4.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-5.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-6.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-7.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-8.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules-9.html
	M	LayoutTests/webgpu/whlsl/separate-shader-modules/separate-shader-modules.html
	M	LayoutTests/webgpu/whlsl/simple-arrays.html
	M	LayoutTests/webgpu/whlsl/store-to-property-updates-properly.html
	M	LayoutTests/webgpu/whlsl/textures-getdimensions.html
	M	LayoutTests/webgpu/whlsl/textures-load.html
	M	LayoutTests/webgpu/whlsl/textures-sample.html
	M	LayoutTests/webgpu/whlsl/two-dimensional-array.html
	M	LayoutTests/webgpu/whlsl/use-undefined-variable-2.html
	M	LayoutTests/webgpu/whlsl/use-undefined-variable.html
	M	LayoutTests/webgpu/whlsl/while-loop-break.html
	M	LayoutTests/webgpu/whlsl/while-loop-continue.html
	M	LayoutTests/webgpu/whlsl/whlsl.html
	M	LayoutTests/webgpu/whlsl/zero-initialize-values-2.html
	M	LayoutTests/webgpu/whlsl/zero-initialize-values.html
	M	Source/WebCore/ChangeLog
	M	Source/WebCore/Modules/webgpu/WebGPUDevice.cpp
	M	Source/WebCore/Modules/webgpu/WebGPUShaderModuleDescriptor.h
	M	Source/WebCore/Modules/webgpu/WebGPUShaderModuleDescriptor.idl
	M	Source/WebCore/platform/graphics/gpu/GPUDevice.h
	M	Source/WebCore/platform/graphics/gpu/GPUShaderModuleDescriptor.h
	M	Source/WebCore/platform/graphics/gpu/cocoa/GPUShaderModuleMetal.mm

ERROR from SVN:
Merge conflict during commit: Conflict at '/trunk/Source/WebCore/ChangeLog'
W: 45877a1dff11ec1ad0c6c0bad09bb04ad62a4c16 and refs/remotes/origin/master differ, using rebase:
:040000 040000 1b1b1432a549c9e65e867babb26e9993aa9177ac 53b238c51cc00ec15e5222050f7b54b46b30c81e M	LayoutTests
:040000 040000 16e9a54e41ec53b241b1a2cb7d6a41e5c55781c9 d6594c82d7ba901a5f264f2caee47e2a44d3f3b5 M	Source
Current branch master is up to date.
ERROR: Not all changes have been committed into SVN, however the committed
ones (if any) seem to be successfully integrated into the working tree.
Please see the above messages for details.


Failed to run "['git', 'svn', 'dcommit', '--rmdir']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit
Updating OpenSource
Current branch master is up to date.

Full output: https://webkit-queues.webkit.org/results/12971607
Comment 10 Myles C. Maxfield 2019-08-26 21:58:24 PDT
Committed r249131: <https://trac.webkit.org/changeset/249131>
Comment 11 Radar WebKit Bug Importer 2019-08-26 21:59:18 PDT
<rdar://problem/54735330>