WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
200312
[WHLSL Remove char/short/half types
https://bugs.webkit.org/show_bug.cgi?id=200312
Summary
[WHLSL Remove char/short/half types
Saam Barati
Reported
2019-07-31 12:52:59 PDT
...
Attachments
patch
(2.35 MB, patch)
2019-07-31 14:09 PDT
,
Saam Barati
mmaxfield
: review+
Details
Formatted Diff
Diff
patch for landing
(2.35 MB, patch)
2019-07-31 14:35 PDT
,
Saam Barati
no flags
Details
Formatted Diff
Diff
patch for landing
(2.35 MB, patch)
2019-07-31 14:38 PDT
,
Saam Barati
commit-queue
: commit-queue-
Details
Formatted Diff
Diff
patch for landing
(2.35 MB, patch)
2019-07-31 15:03 PDT
,
Saam Barati
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Saam Barati
Comment 1
2019-07-31 14:04:46 PDT
The JS script I wrote to modify the stdlib: function assert(b) { if (!b) throw new Error; } const ignore = ["char", "short", "short", "half"]; let lines = readFile("/Volumes/Data/Desktop/stdlib.wsl").split("\n"); let result = ""; let currentFunction = null; let blockNest = 0; for (let line of lines) { if (!currentFunction) { if (line.indexOf("{") >= 0) { currentFunction = [line]; blockNest = 1; } else { let ok = true; if (line.indexOf("/*") < 0) { for (let word of ignore) { if (line.indexOf(word) >= 0) ok = false; } } if (ok) result += `${line}\n`; } continue; } currentFunction.push(line); if (line.indexOf("{") >= 0) { ++blockNest; assert(line.indexOf("}") < 0); } if (line.indexOf("}") >= 0) { assert(line.indexOf("{") < 0); --blockNest; if (!blockNest) { let functionText = currentFunction.join("\n"); let ok = true; for (let word of ignore) { if (functionText.indexOf(word) >= 0) ok = false; } if (ok) result += `${functionText}\n`; currentFunction = null; } } } print(result);
Saam Barati
Comment 2
2019-07-31 14:09:55 PDT
Created
attachment 375242
[details]
patch
Myles C. Maxfield
Comment 3
2019-07-31 14:15:52 PDT
I can't make inline comments, so I'll comment here. We need to keep the TextureFormats, but make sure that whenever they're read, they get padded out to wider types. It's not immediately obvious how to do this, so let's not modify this patch but file a follow-up to make sure that all the texture types work properly. Can we add a non-exhaustive test to make sure that the types don't exist and don't work?
Saam Barati
Comment 4
2019-07-31 14:35:53 PDT
Created
attachment 375246
[details]
patch for landing
Saam Barati
Comment 5
2019-07-31 14:38:34 PDT
Created
attachment 375247
[details]
patch for landing
WebKit Commit Bot
Comment 6
2019-07-31 14:53:46 PDT
Comment on
attachment 375247
[details]
patch for landing Rejecting
attachment 375247
[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-03', 'validate-changelog', '--check-oops', '--non-interactive', 375247, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit ChangeLog entry in LayoutTests/ChangeLog contains OOPS!. Full output:
https://webkit-queues.webkit.org/results/12843123
Saam Barati
Comment 7
2019-07-31 15:03:13 PDT
Created
attachment 375257
[details]
patch for landing
WebKit Commit Bot
Comment 8
2019-07-31 15:37:32 PDT
Comment on
attachment 375257
[details]
patch for landing Clearing flags on attachment: 375257 Committed
r248078
: <
https://trac.webkit.org/changeset/248078
>
WebKit Commit Bot
Comment 9
2019-07-31 15:37:34 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 10
2019-07-31 15:38:26 PDT
<
rdar://problem/53784301
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug