Bug 189099 - [WHLSL] Implement tests to verify array indexing order matches our desires
Summary: [WHLSL] Implement tests to verify array indexing order matches our desires
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Thomas Denney
URL:
Keywords: InRadar
Depends on: 189101
Blocks: 176199 189175
  Show dependency treegraph
 
Reported: 2018-08-29 14:57 PDT by Thomas Denney
Modified: 2018-10-13 15:05 PDT (History)
4 users (show)

See Also:


Attachments
WIP (3.24 KB, patch)
2018-08-30 14:07 PDT, Thomas Denney
no flags Details | Formatted Diff | Diff
Patch (4.45 KB, patch)
2018-08-30 14:23 PDT, Thomas Denney
no flags Details | Formatted Diff | Diff
Patch (4.38 KB, patch)
2018-08-30 14:27 PDT, Thomas Denney
no flags Details | Formatted Diff | Diff
Patch (4.38 KB, patch)
2018-08-30 14:36 PDT, Thomas Denney
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Denney 2018-08-29 14:57:10 PDT
If you have a float2x4 (for example) then the first subscript index should match the first dimension and the second subscript index should match the second dimension.

Likewise, if you have an array declared as float[5][4] x, then you should be able to access element x[4][3] (but not x[3][4]).
Comment 1 Thomas Denney 2018-08-30 14:07:10 PDT
Created attachment 348543 [details]
WIP
Comment 2 Thomas Denney 2018-08-30 14:23:37 PDT
Created attachment 348549 [details]
Patch
Comment 3 Thomas Denney 2018-08-30 14:27:40 PDT
Created attachment 348550 [details]
Patch
Comment 4 Myles C. Maxfield 2018-08-30 14:32:37 PDT
Comment on attachment 348550 [details]
Patch

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

> Tools/WebGPUShadingLanguageRI/Test.js:5591
> +let testExclusionFilter = /^disabled_/;

I prefer DISABLED_
Comment 5 Thomas Denney 2018-08-30 14:36:07 PDT
Created attachment 348555 [details]
Patch
Comment 6 WebKit Commit Bot 2018-08-30 14:53:51 PDT
Comment on attachment 348555 [details]
Patch

Clearing flags on attachment: 348555

Committed r235525: <https://trac.webkit.org/changeset/235525>
Comment 7 WebKit Commit Bot 2018-08-30 14:53:52 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2018-08-31 08:56:46 PDT
<rdar://problem/43941946>
Comment 9 Myles C. Maxfield 2018-10-13 15:05:11 PDT
Migrated to https://github.com/gpuweb/WHLSL/issues/72