Bug 188873

Summary: [WHLSL] Add more functions to the standard library
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: New BugsAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, dino, fpizlo, rmorisset, tdenney, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 176199    
Attachments:
Description Flags
WIP
none
WIP
none
WIP
none
Matrix types compile
none
Matrix types compile
none
Patch
none
WIP
none
WIP
none
Patch
none
Patch
none
Patch
none
WIP
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch for committing
none
Patch for committing none

Description Myles C. Maxfield 2018-08-22 17:45:44 PDT
[WHLSL] Add more functions to the standard library
Comment 1 Myles C. Maxfield 2018-08-22 17:46:25 PDT
Created attachment 347885 [details]
WIP
Comment 2 Myles C. Maxfield 2018-08-22 19:45:56 PDT
Created attachment 347895 [details]
WIP
Comment 3 Myles C. Maxfield 2018-08-22 22:34:17 PDT
Created attachment 347901 [details]
WIP
Comment 4 Myles C. Maxfield 2018-08-23 10:41:43 PDT
Created attachment 347935 [details]
Matrix types compile
Comment 5 Myles C. Maxfield 2018-08-23 10:42:28 PDT
Created attachment 347936 [details]
Matrix types compile
Comment 6 Myles C. Maxfield 2018-08-23 15:45:17 PDT
Created attachment 347963 [details]
Patch
Comment 7 Myles C. Maxfield 2018-08-23 15:48:25 PDT
*** Bug 188685 has been marked as a duplicate of this bug. ***
Comment 8 Myles C. Maxfield 2018-08-23 17:35:18 PDT
Created attachment 347980 [details]
WIP
Comment 9 Myles C. Maxfield 2018-08-23 23:17:54 PDT
Created attachment 347993 [details]
WIP
Comment 10 Myles C. Maxfield 2018-08-24 08:27:56 PDT
Created attachment 348011 [details]
Patch
Comment 11 Myles C. Maxfield 2018-08-24 16:05:03 PDT
Created attachment 348051 [details]
Patch
Comment 12 Myles C. Maxfield 2018-08-24 16:28:26 PDT
Created attachment 348053 [details]
Patch
Comment 13 Myles C. Maxfield 2018-08-25 08:29:32 PDT
Created attachment 348078 [details]
WIP
Comment 14 Myles C. Maxfield 2018-08-25 16:25:59 PDT
Created attachment 348087 [details]
Patch
Comment 15 Myles C. Maxfield 2018-08-25 21:16:06 PDT
Created attachment 348088 [details]
Patch
Comment 16 Myles C. Maxfield 2018-08-26 08:33:17 PDT
Created attachment 348091 [details]
Patch
Comment 17 Myles C. Maxfield 2018-08-27 15:09:58 PDT
Created attachment 348208 [details]
Patch
Comment 18 Myles C. Maxfield 2018-08-27 15:55:52 PDT
Created attachment 348224 [details]
Patch
Comment 19 Filip Pizlo 2018-08-29 07:55:03 PDT
R=me. I had a hard time setting r+, presumably due to the size of the patch. 

One bit of feedback: you could have written JS code that loops over types and operators to generate the repetitive WHLSL code. Particularly for the swizzle operators.
Comment 20 Myles C. Maxfield 2018-08-29 10:56:09 PDT
Created attachment 348413 [details]
Patch for committing
Comment 21 Myles C. Maxfield 2018-08-29 10:57:23 PDT
(In reply to Filip Pizlo from comment #19)
> R=me. I had a hard time setting r+, presumably due to the size of the patch. 
> 
> One bit of feedback: you could have written JS code that loops over types
> and operators to generate the repetitive WHLSL code. Particularly for the
> swizzle operators.

Done. Doing this reduces the patch size from 1.63MB to 222KB.
Comment 22 Myles C. Maxfield 2018-08-29 11:04:31 PDT
Created attachment 348415 [details]
Patch for committing
Comment 23 WebKit Commit Bot 2018-08-29 11:21:58 PDT
Comment on attachment 348415 [details]
Patch for committing

Clearing flags on attachment: 348415

Committed r235469: <https://trac.webkit.org/changeset/235469>
Comment 24 WebKit Commit Bot 2018-08-29 11:22:00 PDT
All reviewed patches have been landed.  Closing bug.
Comment 25 Radar WebKit Bug Importer 2018-08-29 11:22:48 PDT
<rdar://problem/43850256>
Comment 26 Myles C. Maxfield 2018-08-29 17:09:30 PDT
*** Bug 177645 has been marked as a duplicate of this bug. ***
Comment 27 Myles C. Maxfield 2018-08-29 17:24:08 PDT
*** Bug 188489 has been marked as a duplicate of this bug. ***
Comment 28 Myles C. Maxfield 2018-10-13 15:25:13 PDT
Migrated to https://github.com/gpuweb/WHLSL/issues/91