Commit Graph

238 Commits

Author SHA1 Message Date
Kai Ninomiya a75b0c0f13 Set OWNERS to * on .txt files needed for CTS rolls
Bug: None
No-Try: True
Change-Id: I6f6f337c463cf2f5f7a1bfb9de51b09ae19ebc91
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/119581
Auto-Submit: Kai Ninomiya <kainino@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
2023-02-13 10:17:04 +00:00
Jiawei Shao f5cee3fadf Enable the optional feature bgra8unorm-storage on Metal
This patch adds the support of the optional feature "bgra8unorm-storage"
and enable it on  Metal.

Bug: dawn:1641
Test: dawn_end2end_tests
Change-Id: Id58cefd8735f46b8d1807376ebcfada10df2890e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/111380
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
2023-02-11 02:53:53 +00:00
Antonio Maiorano ec20758675 tint: polyfill remainder to handle negative operands
Bug: tint:1802
Change-Id: Ie9baa045feda08523e5ca4f5ce94b6db7d4477e5
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/119100
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2023-02-10 15:01:02 +00:00
Yunchao He 2d41a015d7 Report error immediately if pass ends twice
The previous code reports error till command encoder finish.

This change also updates webgpu-cts expectations.txt accordingly.

Bug: dawn:1578

Change-Id: I1fe758a02d9cfdb1440e3cabf10aea0bd60b9c59
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116842
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Yunchao He <yunchao.he@intel.com>
2023-02-08 22:04:10 +00:00
Kai Ninomiya 08fd42f08a Mark f32_arithmetic tests as slow for code-coverage builders
Bug: chromium:1399354
No-Try: True
Change-Id: I2641ab4dce8579a05dd873d6d37b1f5caece4cf0
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/119002
Reviewed-by: Austin Eng <enga@chromium.org>
Auto-Submit: Kai Ninomiya <kainino@chromium.org>
Kokoro: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Kai Ninomiya <kainino@chromium.org>
2023-02-07 21:19:46 +00:00
Jiawei Shao c272282e97 D3D12: Allocate renderable 2D textures as committed resources on Intel GPUs
This patch adds a workaround on Intel Gen9.5 and Gen11 GPUs to always
allocate renderable 2D textures as committed resources instead of
placed resources to mitigate a driver bug about CreatePlacedResource().

Bug: dawn:1628
Change-Id: I38062115d94933bd58e571c812ff6888e9781df6
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/100640
Commit-Queue: Austin Eng <enga@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
2023-02-07 15:09:58 +00:00
Austin Eng e60a579c19 Add workaround to blit depth to depth
Fixes T2T depth copies on Mac Intel where the destination
subresource is a non-zero mip/layer.

Fixed: dawn:1083
Change-Id: If344b46c3fd436d857906850fc0ac5ccb4b93e1d
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/117592
Commit-Queue: Austin Eng <enga@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
2023-02-01 22:49:39 +00:00
Antonio Maiorano 635c5d0f04 tint/spir-v backend: emit OpSRem instead of OpSMod for remainder
operation

Bug: tint:1802
Change-Id: I690ef658874ba8d0d9cd8efa2a91324db175650b
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/118100
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: David Neto <dneto@google.com>
Kokoro: Ben Clayton <bclayton@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2023-01-31 19:09:05 +00:00
Austin Eng 00dbf0bf67 Add workarounds to blit a buffer to a depth/stencil texture
Works around issues on Metal Intel where CopyB2T and WriteTexture
with depth/stencil textures do not work correctly.
Fixes test failures with depth16unorm in the CTS.

Deletes UseTempTextureInStencilTextureToBufferCopy in favor of
the stencil blit. The former supposedly fixes a problem where
the stencil data is not flushed into the real stencil texture
by performing another T2T copy. This only works because the Metal
Intel backend also happens to allocate s8 as d32s8. Copying
the depth aspect as well seems to make the driver remember to
flush the data.
The stencil blit is a better fix for the problem since entirely
avoids getting the driver into a bad state where the stencil data
is not in sync.

Fixed: dawn:1389
Change-Id: If34b1d58996157036c164a5bc329e38b5e53f67a
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/117910
Reviewed-by: Loko Kung <lokokung@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Austin Eng <enga@chromium.org>
2023-01-30 17:13:12 +00:00
Austin Eng f7f2d4ae82 Roll third_party/webgpu-cts/ 3f9b09b36..ad8abf400 (2 commits)
Regenerated:
 - expectations.txt
 - ts_sources.txt
 - test_list.txt
 - cache_list.txt
 - resource_files.txt
 - webtest .html files


3f9b09b36b..ad8abf400d
 - ad8abf Make fuzzy test match wpt fuzzy specs (#2194)
 - b38a15 Use screenshot library (#2193)

Created with './tools/run cts roll'

Change-Id: Id8767584c8ff808d50cf02eb7eb7ab647853cd84
Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/117782
Reviewed-by: Loko Kung <lokokung@google.com>
Commit-Queue: Loko Kung <lokokung@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Kokoro: Austin Eng <enga@chromium.org>
Auto-Submit: Austin Eng <enga@chromium.org>
2023-01-25 22:00:12 +00:00
Austin Eng 97f56bd0b8 Clamp the stencil reference to 255
Fixed: dawn:1645
Change-Id: I908fe0a2cb029c7cc6cf94b066f0f842e0f1e224
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/117532
Commit-Queue: Austin Eng <enga@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Reviewed-by: Loko Kung <lokokung@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2023-01-25 20:57:49 +00:00
Ben Clayton 5a2b5d9cc9 Roll third_party/webgpu-cts/ 9fbed0099..3f9b09b36 (8 commits)
Regenerated:
 - expectations.txt
 - ts_sources.txt
 - test_list.txt
 - cache_list.txt
 - resource_files.txt
 - webtest .html files


9fbed0099e..3f9b09b36b
 - 3f9b09 Adjust fuzzy value on canvas_colorspace_rgba16float ref test (#2188)
 - 63e279 Make canvas_colorspace_rgba16float ref test more fuzzy
 - ace40f op,render_pipeline,sample_mask depth stencil multisampled tests (#2179)
 - f26ab8 Implement the division param restrictions in atan2 (#2183)
 - 381672 math: Remove pointless lerp() in biasedRange
 - 381f3d Test GPUCanvasContext.configure colorSpace
 - 3436e5 Clear pages between pages. (#2182)
 - 7e5c20 Test colorSpace in readback tests

Created with './tools/run cts roll'

Change-Id: I0b755e9de472b1091d0719a781e1de41474dcc13
Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/117660
Auto-Submit: Ben Clayton <bclayton@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
2023-01-24 20:32:05 +00:00
Austin Eng 387d57c805 Metal: set both depth/stencil attachments for combined formats
Adds a toggle to workaround another issue where Metal fails to set
the depth/stencil attachment correctly for a combined depth stencil
format if just one of the attachments is used. The workaround forces
both attachments to be set, giving the unused one LoadOp::Load and
StoreOp::Store so its contents are preserved.

Bug: dawn:1389
Change-Id: Iacbefcc57b33bf11ca8fcacb03506301646fe59d
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/117175
Reviewed-by: Loko Kung <lokokung@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Austin Eng <enga@chromium.org>
2023-01-21 02:42:15 +00:00
dan sinclair b36e09c71a Add bug numbers to shader expectations.
This CL updates a few shader expectations with the relevant issue
number.

Change-Id: I8c38857a51276f4cc3206ee8617f3edda747a301
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/117480
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
2023-01-19 18:39:06 +00:00
Antonio Maiorano 73735fde95 Roll third_party/webgpu-cts/ 65fcd99b7..9fbed0099 (13 commits)
Regenerated:
 - expectations.txt
 - ts_sources.txt
 - test_list.txt
 - cache_list.txt
 - resource_files.txt
 - webtest .html files


65fcd99b74..9fbed0099e
 - 9fbed0 Apply error to final result of `atan2` calculation, not intermediates (#2143)
 - 02a770 [wgsl] Add align size requirement test. (#2174)
 - ebe427 Fix name of binary/u32_arithmetic cache (#2177)
 - 1fdd20 Transfer to image bitmap npe (#2131)
 - 55a0dc Fix u32 and i32 non-const divide by 0 expecting lhs (not 0) (#2175)
 - 8c8367 Add test for u32 binary arithmetic operations (#2173)
 - 556dbb Replace map+filter with reduce in case generators (#2172)
 - 8a0bef Add additional unit testing for builtins that depend on dot (#2171)
 - 44f038 Add tests for i32 binary arithmetic operations (#2170)
 - d3684a Remove the canvas_size_different_with_back_buffer_size reftest (#2165)
 - 13fc69 Convert remaining dispatch() to dispatchWorkgroups() (#2169)
 - 4f3e80 Remove io-shareable test, move more types into locations test. (#2159)
 - 2d4661 Add unary i32 execution tests (#2162)

Created with './tools/run cts roll'

Change-Id: I5d7a3a1786049527fef00c5e5e331e94cafddedf
Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/117381
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
2023-01-19 15:10:33 +00:00
Austin Eng e2be18a7fd Workaround stencil to buffer copies on Metal Intel
Stencil to buffer copies don't capture contents
written in a rendering stage. Copying through an
intermediate texture fixes this problem on Metal Intel.

Add test for the code path that found the issue:
Nonzero-mip stencil copy, discard, then read

Bug: dawn:1389
Change-Id: I63d982df6bace4b5053d3c643b8abda1682490d1
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116851
Commit-Queue: Austin Eng <enga@chromium.org>
Reviewed-by: Loko Kung <lokokung@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2023-01-18 17:55:14 +00:00
Austin Eng 36c37906f3 Mark ...map_ArrayBuffer:postMessage:transfer=true;* passing
Fixed: chromium:1392843
Change-Id: Ifc9d9aba61962d9a8739a0c93c050588185f9f20
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/117166
Auto-Submit: Austin Eng <enga@chromium.org>
Kokoro: Austin Eng <enga@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
Commit-Queue: Kai Ninomiya <kainino@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
2023-01-17 20:56:15 +00:00
Austin Eng 1177c970d6 Add Metal workaround to allocate stencil8 as combined depth-stencil
Stencil8 textures don't work correctly on some drivers. Workaround
by allocating a combined depth-stencil texture instead.

Suppress newly added test on Windows ANGLE

Bug: dawn:1389, dawn:1637
Change-Id: Iea03e8f3e5e7f663ffc7b344ab007a73836557cc
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116846
Reviewed-by: Loko Kung <lokokung@google.com>
Kokoro: Austin Eng <enga@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
2023-01-17 19:06:12 +00:00
Ben Clayton 6bbd8b4e77 Roll third_party/webgpu-cts/ c0d64c238..65fcd99b7 (8 commits)
Regenerated:
 - expectations.txt
 - ts_sources.txt
 - test_list.txt
 - cache_list.txt
 - resource_files.txt
 - webtest .html files


c0d64c2382..65fcd99b74
 - 65fcd9 webgpu/shader/validation: Add static_assert tests
 - 0ec986 runtime: Add server '/load' RPC
 - b5a8a3 webgpu/shader: Validate semicolons
 - 921148 webgpu/shader/validation: Add resource binding tests
 - 408f94 Fix resize-observer test.
 - f32e8c Fix local ref-test runner
 - bb8f11 val,render_pipeline,depth_stencil_state,depth_write,frag_depth (#2163)
 - 77e0a9 Add subrect copy tests for copyToTexture (#2150)

Created with './tools/run cts roll'

Change-Id: I6534e8c067a897d65fe3002cd587672570d553f4
Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/117221
Kokoro: Ben Clayton <bclayton@google.com>
Auto-Submit: Ben Clayton <bclayton@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
2023-01-17 12:45:58 +00:00
Ben Clayton 48a49f3730 Roll third_party/webgpu-cts/ 941695197..c0d64c238 (2 commits)
Regenerated:
 - expectations.txt
 - ts_sources.txt
 - test_list.txt
 - cache_list.txt
 - resource_files.txt
 - webtest .html files


941695197d..c0d64c2382
 - c0d64c Convert `dot` to calculating permutations for vec3 and vec4 (#2158)
 - 69ea85 operation,render_pipeline,sample_mask (#2147)

Created with './tools/run cts roll'

Change-Id: I60439098bfec8acada616b0a3447a4ad670816bb
Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/117060
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Kokoro: Ben Clayton <bclayton@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Auto-Submit: Ben Clayton <bclayton@google.com>
2023-01-13 15:37:41 +00:00
Austin Eng e11278f1c7 Remove some KEEP blocks from expectations.txt
Bug: none
Change-Id: I84c8c49af48a494cf2d0cb7bde1a58eba2412755
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116852
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Austin Eng <enga@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
2023-01-12 18:42:04 +00:00
Ben Clayton 0df2ea62ea Roll third_party/webgpu-cts/ 0d52602a4..941695197 (12 commits)
Regenerated:
 - expectations.txt
 - ts_sources.txt
 - test_list.txt
 - cache_list.txt
 - resource_files.txt
 - webtest .html files


0d52602a41..941695197d
 - 941695 Make objectEquals(NaN, NaN) return true (#2153)
 - 23b860 Make it possible to simply run the wpt ref tests
 - 1b9cc1 Fix Buffer.mapState op tests (#2145)
 - 0cb55f Use takeScreenshotDelayed in canvas_image_rendering-ref.html
 - 9adf83 Remove phantom dependency on reftest-wait.js, copy code into CTS
 - ce6e91 Maximize the acceptance interval size for `dot` (#2151)
 - d1093e If subcase can't be added to .message, use .stack (#2144)
 - f44818 Add more states to canvas composite ref tests. (#2133)
 - f7fcc6 Cache pipelines between batches for expression tests
 - 142289 Optimize expression shaders for `inputSource="uniform"`
 - f3764e Unclutter the URL
 - 6a7b90 Add Buffer.mapState test (#2130)

Created with './tools/run cts roll'

Change-Id: I8cfc04e78f1bfc387d49926344a1792c6d319760
Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/117000
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Auto-Submit: Ben Clayton <bclayton@google.com>
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Ben Clayton <bclayton@google.com>
2023-01-12 16:44:49 +00:00
Jiawei Shao c9e507341c Enable the WebGPU CTS about compilation info with unicode
This patch enables the WebGPU CTS test on the compilation info with
unicode after all the related patches landed in Chromium and Dawn.

Bug: dawn:1357
Change-Id: Ifebc42b36697bb6d757254c313e1832e9966fefa
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116923
Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
Reviewed-by: Austin Eng <enga@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
2023-01-12 06:06:40 +00:00
dan sinclair 16da0738f2 Add issue number for compute_builtin expectations.
This CL adds an issue number for the compute_builtin expectations.

Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Bug: tint:1801
Change-Id: Id8c5a5985fe36a941fa293dbe98821f043da6cd3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116689
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2023-01-12 04:01:00 +00:00
dan sinclair c231e180d7 Add issues to the F32 builtin expectations
This CL adds issue numbers the f32 builtin expectations.

Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Bug: tint:1796, tint:1797, tint:1798
Change-Id: Ic57cee5154e24f0e4cae8b0fbb65a39907331932
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116688
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
2023-01-11 22:09:32 +00:00
dan sinclair d1f3d69818 Add issue for the `dot` expectations.
This CL adds an issue number for the `dot` expectations.

Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Bug: tint:1790
Change-Id: I424f7ffcadbb58334f29061f31a9a7edd242738a
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116685
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2023-01-11 22:09:23 +00:00
dan sinclair 7092786f31 Fixup return of HLSL sign to match WGSL.
The HLSL `sign` method returns an `int` result (scalar or vector). The
WGSL `sign` expects the result to be the same type as the argument. This
CL injects a cast to the correct type after the `sign` call in the HLSL
generated source.

Bug: tint:1795
Change-Id: I51fed24b5b8b752b6b27fdfb5dd47eb803902793
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116692
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2023-01-11 13:18:29 +00:00
Ben Clayton 4f9b944c99 Roll third_party/webgpu-cts/ fdf9e7c12..0d52602a4 (6 commits)
Regenerated:
 - expectations.txt
 - ts_sources.txt
 - test_list.txt
 - cache_list.txt
 - resource_files.txt
 - webtest .html files


fdf9e7c129..0d52602a41
 - 0d5260 [wgs] Sync keyword and reserved word list to spec. (#2141)
 - 690ad7 Add a ResizeObserve test
 - 2515d1 Test you can not create 1d, 2d-array, and 3d multisampled textures (#2111)
 - b30685 Remove class=reftest-wait from a -ref.html (#2140)
 - cfdfa0 remove <link rel=match> from -ref.html (#2137)
 - 23ff9b Test texture descriptor validation in GPUCanvasContext (#2126)

Created with './tools/run cts roll'

Change-Id: I2c834baf6aea6ae9c8811a418c9dab96f53624ef
Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116780
Kokoro: Ben Clayton <bclayton@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Auto-Submit: Ben Clayton <bclayton@google.com>
2023-01-11 02:00:12 +00:00
dan sinclair ce42cf1b4c Add issue number to the f32 remainder expectations.
This CL adds an issue number the F32 remainder expectations. The other arithmetic tests are passing and are removed from the expectation file.

Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Bug: tint:1799
Change-Id: I170d8631c952eb99e40afa039d604072af6a3f34
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116687
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
2023-01-10 15:36:09 +00:00
dan sinclair c5e9ece52b Add tracking issue to `sign` expectations.
This CL adds a tracking issue to the `sign` expectations

Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Bug: tint:1795
Change-Id: Ibfb90b62db6006a237247b97a82c976d4f96aab2
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116686
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Kokoro: Ben Clayton <bclayton@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
2023-01-10 15:35:42 +00:00
dan sinclair e0254998cf Add tracking issue `countTrailingZeros` expectations.
This CL adds a tracking issue for the `countTrailingZeros` expectations.

Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Bug: tint:1794
Change-Id: I43473e9ce771de65073935fc543d29c36f787ad3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116683
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
2023-01-10 12:12:18 +00:00
dan sinclair 98a96ffb7a Add tracking issue to `firstTrailingBit` expectations
This CL adds a tracking issue for the `firstTrailingBit` expectations.

Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Bug: tint:1794
Change-Id: I1566641df3bd37c6d72baf6e3fc6a7c1c3a22204
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116684
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
2023-01-10 12:11:38 +00:00
Jiawei Shao 7e6170ec0b Suppress validation,error_scope:current_scope:* with large stack depth on Win Intel
The below WebGPU CTS tests fail consistently on Win10 Intel FYI bots
and we have to suppress them temporarily:
- validation,error_scope:current_scope:* with StackDepth=100000

Bug: chromium:1406064
Change-Id: Ib74fb76c529c522fb7389fadec8a23cd9d99d806
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116690
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
2023-01-10 05:13:33 +00:00
dan sinclair 3d2caaae47 Enable const-eval expectations.
The const-eval work is complete in Tint, enable the const-eval tests in
the expectation file.

Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Change-Id: I64986982967031fc818522f8fc60b3faad382781
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116681
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2023-01-09 21:43:55 +00:00
dan sinclair 96f03832c7 Remove atan2 expectation.
Various updates have been made to the way the CTS runs tests which
should make this faster and non-flaky.

Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Change-Id: I2c241efabf240e82d700780e018bd1ce636c6f87
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116680
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2023-01-09 21:43:20 +00:00
dan sinclair 6b5c6bca34 Add bug to identifier glob expectation.
This CL associates a tracking bug to the identifier glob expectation.

Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Change-Id: Id99da498a48655c712343820bc0c952d6a90e50e
Bug: tint:1791
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116682
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
2023-01-09 20:33:56 +00:00
Ben Clayton 55aa801705 Roll third_party/webgpu-cts/ e8109c7ca..fdf9e7c12 (4 commits)
Regenerated:
 - expectations.txt
 - ts_sources.txt
 - test_list.txt
 - cache_list.txt
 - resource_files.txt
 - webtest .html files


e8109c7cac..fdf9e7c129
 - fdf9e7 shader/expression: Reduce 'const' shader size (#2129)
 - 1c9bc7 Add HTML5 DOCTYPE to all reftests (#2127)
 - 3c6768 op: Add 'index_format,setIndexBuffer_before_setPipeline' test in index_format.spec.ts (#2125)
 - 9e0480 Add a canvas image-rendering wpt ref test (#2119)

Created with './tools/run cts roll'

Change-Id: Iafca73eb1f88b1efd403706db503f0ca191e2069
Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116621
Auto-Submit: Ben Clayton <bclayton@google.com>
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2023-01-07 23:10:08 +00:00
Ben Clayton 64e900e456 Clear up a bunch of expectations
With the CTS global timeout extended, and tweaks to how const-eval loops are emitted, we now have a whole lot of passing tests.

Adjust the 'Slow' threshold to account for the new global timeout.

Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Change-Id: I9a4d3278048e72e6560552164522395423dedf99
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116296
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
2023-01-07 17:53:27 +00:00
Brandon Jones 079617e3d0 Re-enable External Texture CTS for Mac/VideoFrame
Re-enable External Texture CTS for Mac/VideoFrame following test
expectations being revised.

Bug: dawn:1631
Bug: chromium:1316671
Change-Id: I7423c274b5d77832e3c98706829f66425f97e23b
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116370
Kokoro: Kokoro <noreply+kokoro@google.com>
Auto-Submit: Brandon1 Jones <brandon1.jones@intel.com>
Commit-Queue: Brandon1 Jones <brandon1.jones@intel.com>
Reviewed-by: Austin Eng <enga@chromium.org>
2023-01-07 01:37:16 +00:00
Ben Clayton 0b32a07d23 expectations.txt: Remove untested intel GPUs
From the tag sets.

Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Change-Id: I2cef9ef61669b364e79f19cf105e46dd257edcac
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116287
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
2023-01-07 00:28:43 +00:00
Brandon Jones 582ce0b0b4 Re-enable External Texture CTS Tests On Windows
Re-enables external texture CTS tests on Windows after expectations were revised.

Bug: dawn:1082
Bug: chromium:1316671
Change-Id: I1632744ddb816ce4e8e435a4554e40922106e6b5
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116542
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Brandon1 Jones <brandon1.jones@intel.com>
Auto-Submit: Brandon1 Jones <brandon1.jones@intel.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
2023-01-06 19:05:09 +00:00
Ben Clayton 1ec6e861ec Roll third_party/webgpu-cts/ 6d3a80420..e8109c7ca (8 commits)
Regenerated:
 - expectations.txt
 - ts_sources.txt
 - test_list.txt
 - cache_list.txt
 - resource_files.txt
 - webtest .html files


6d3a80420d..e8109c7cac
 - e8109c Revise External Texture Test Expectations (#2122)
 - 8a3c76 Improve Buffer.mapAsync tests (#2101)
 - 767f86 Update docs/intro/developing.md
 - 411fec Add wpt ref test docs
 - 0ed181 Check that getBindGroupLayout returns unique JS objects.
 - 860d2e Fix const-eval failures for ldexp
 - d7f4a9 Add a powerPreference option
 - fd7360 operation,render_pipeline_overrides tests (#2106)

Created with './tools/run cts roll'

Change-Id: Iff039ea1e2e69f26d914009ab13d5f9a8d0f036a
Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116481
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Kokoro: Ben Clayton <bclayton@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Auto-Submit: Ben Clayton <bclayton@google.com>
2023-01-06 14:25:05 +00:00
Jiawei Shao e12cb4f3bd Suppress render_pass,storeOp:render_pass_store_op,color_attachment_only:* on Win10 Intel
This patch suppresses the below flaky WebGPU CTS tests on Win10 Intel:
- webgpu:api,operation,render_pass,storeOp:render_pass_store_op,color_attachment_only:*

Bug: dawn:1628
Change-Id: I8a0c3ab8140f2fc1b6f4126e9c102d3c7a466404
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116139
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2023-01-06 06:12:39 +00:00
Jiawei Shao c170cd4f7c Enable CTS tests about stencil copy on Win10 Intel bots
This patch enables all the CTS tests about stencil copy on Win10
Intel bots after the driver of the bots being upgraded to
31.0.101.2111.

Bug: dawn:1487
Change-Id: Ib6fae45da4d5db73b165d9d6a1f9dc8c4310d5a0
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116401
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
2023-01-05 23:05:26 +00:00
Ben Clayton 33bfc98822 Roll third_party/webgpu-cts/ 0673bb68c..6d3a80420 (1 commit)
And unroll const-eval expression test loops on non-windows platforms, in an
attempt to avoid test timeouts on devices that perform poorly with constant array
indexing inside loops.

Regenerated:
 - expectations.txt
 - ts_sources.txt
 - test_list.txt
 - cache_list.txt
 - resource_files.txt
 - webtest .html files

0673bb68c2..6d3a80420d
 - 6d3a80 Add flag to unroll const-eval loops

Created with './tools/run cts roll'

Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Change-Id: Ida17dbab3eeed1e30610af63d036c3d43ceafa68
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116292
Auto-Submit: Ben Clayton <bclayton@google.com>
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Ben Clayton <bclayton@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
2023-01-05 21:44:37 +00:00
Corentin Wallez 8e68a89cfb Vulkan: Clamp @builtin(frag_depth) with push constant values
Start using Tint's ClampFragDepth transform in the Vulkan backend when
needed in order to correctly clamp @builtin(frag_depth) on Vulkan. Do
this by always reserving 8 bytes of push constant space to contain the
f32 min and max values from the last viewport command.

Reenables relevant CTS tests that were suppressed on Vulkan.

Bug: dawn:1125, dawn:1576, dawn:1616
Change-Id: I38f4f6c3c51c99b5e591a780fea9859537529534
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/105642
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Loko Kung <lokokung@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
2023-01-05 12:24:52 +00:00
Kai Ninomiya 452d6e3cc3 Roll third_party/webgpu-cts/ 09447faf1..0673bb68c (48 commits)
Regenerated:
 - expectations.txt
 - ts_sources.txt
 - test_list.txt
 - cache_list.txt
 - resource_files.txt
 - webtest .html files


09447faf1a..0673bb68c2
 - 0673bb Fix silencing of DOMExceptions (#2102)
 - d85507 Test beginComputePass/RenderPass after encoder.finish() in call_after_successful_finish (#2093)
 - 861b20 Update kMaxQueryCount to 4096 (#2104)
 - 030f44 Add some progress
 - 62dbcc Support dark mode
 - 6a7030 Buffer.mapAsync pending map error shouldn't be a validation error (#2080)
 - 44173e Test all stencil formats, and address some nits in depth_bias/stencil tests (#2096)
 - 172002 op: Update 'stencil_compare_func' test in stencil.spec.ts (#2094)
 - f12820 op: Implement 'depth_bias_24bit_format' test in depth_bias.spec.ts (#2095)
 - 5f2708 Add earlyRejection parameter to testMapAsyncCall() (#2052)
 - dcdcb3 op: Implement 'stencil_depthFailOp_operation' test in stencil.spec.ts (#2092)
 - d13c42 op: Update 'stencil_test_fail' test (#2091)
 - 5daf3c Fix wrong _errorLine in operation/shader_module/compilation_info.spec.ts (#2088)
 - 47d19f op: Introduce depth_bias.spec.ts file with a 'depth_bias' test (#2075)
 - 7a679a Prefix subcase recorder error stacks with the subcase name (#2086)
 - 17522c fix requestAdapter test.
 - 5a5838 Implement CTS requestAdapter test
 - e583fa Add 'skipUndefined' Comparator (#2082)
 - e0e735 Remove usage of Case Cache in `pack2x16float`
 - eb5794 Update copyTextureToTexture tests to allow both encodings of -1 for 8-byte snorm formats (#2073)
 - 516d19 Expect DataCloneError when transferring a detached mapped ArrayBuffer (#2076)
 - 8985b5 Filter inputs that will cause const-eval to fail validation due to OOB
 - 216c8e Remove attempting to emit infinities in WGSL (#2059)
 - b99b81 Adds explicit check that mapAsync rejects when buffer is destroyed. (#2069)
 - ae20ff Add code coverage collection feature to the server
 - 1ff6ae Implement generate*Cases functions and use them (#2062)
 - 7e99a7 op: Implement 'depth_test_fail' test in depth.spec.ts (#2067)
 - b701c5 Add val:*_pipeline,overrides,value,type_error/validation_error (#2061)
 - b6f758 op: Implement 'stencil_reference_initialized' test in stencil.spec.ts (#2063)
 - 89bf5e Also test depthWriteEnabled:true in depth_write_disabled (#2065)
 - 40e3ae op: Implement 'depth_disabled' test in depth.spec.ts (#2050)
 - 677ece op: Implement 'depth_write_disabled' test in depth.spec.ts (#2024)
 - a6b97c Remove infinities from all f32 test inputs (#2056)
 - 41a1e5 Replace usage of vector inputs with fullF32Range for arithmetic tests (#2053)
 - 16bb08 wgsl: Add tests for preservation of padding bytes (#2051)
 - 7d16f8 op: Implmenet 'stencil_pass_operation' test in stencil.spec.ts (#2055)
 - dcc430 op: Implement stencil_read_write_mask test in stencil.spec.ts (#2043)
 - f539a2 op: Implement stencil_fail_operation test in stencil.spec.ts (#2044)
 - 8041ca update deps for various packages (#2041)
 - 09b30e op: Implement 'stencil_compare_func' test in stencil.spec.ts (#2032)
 - c6efbf Except a TypeError when transferring a mapped ArrayBuffer (#2019)
 - dd4316 op: Add more parameters to 'color_write_mask,channel_work' test (#2025)
 - b66a1a Replace calls to F32Interval constructor with toF32Interval (#2037)
 - fdab6c Clean up a couple of .map in f32_interval.spec.ts tests (#2038)
 - 40abc0 Test buffer.mapAsync() early rejection (#2033)
 - 25ddea Handle inputs that are arrays in `cartesianProduct` (#2031)
 - 0e790f Only try to generate errors for testable error filters (#2034)
 - 57304e Fix workgroup array size limit validation test (#2035)

Created with './tools/run cts roll'

Change-Id: I9b6e2b8526fc62acbf915b5e8153d32ae02c7a14
Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116420
Auto-Submit: Kai Ninomiya <kainino@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Loko Kung <lokokung@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2023-01-05 10:59:39 +00:00
Gregg Tavares 6609f9cfb9 Workaround Metal Validation Issue for copying 3D textures to a buffer.
The metal validation layer complains when copying from a 3D texture to
a buffer if the stride for the destination buffer is larger then 2048
bytes.

Bug: dawn:1430
Change-Id: I6ba4508d71610c35dfb0fab7d2bebc91d37504e3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/113426
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Gregg Tavares <gman@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Brandon Jones <bajones@chromium.org>
2022-12-22 01:30:22 +00:00
shrekshao 49a08b7668 Refix validation for command encoder pass encoding
According to latest spec, beginRenderPass/beginComputePass
don't throw validation error. Error still defers to
CommandEncoder::Finish()

Bug: dawn:1602
Change-Id: I5fd76f2c8951273a8dd82b02e20f076079354b60
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/115120
Reviewed-by: Austin Eng <enga@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Shrek Shao <shrekshao@google.com>
2022-12-20 21:03:16 +00:00
Yuly Novikov c4673b7386 Suppress couple more WebGPU CTS flakes on Win Intel
From:
https://luci-milo.appspot.com/p/chromium/builders/ci/Dawn%20Win10%20x64%20Experimental%20Release%20%28Intel%29/641
https://luci-milo.appspot.com/p/chromium/builders/ci/Dawn%20Win10%20x86%20Experimental%20Release%20%28Intel%29/433

Bug: None
Change-Id: Icb7e3b7fd3a0920cd74677717e5ec061b9fbe78e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/115160
Commit-Queue: Austin Eng <enga@chromium.org>
Auto-Submit: Yuly Novikov <ynovikov@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Austin Eng <enga@chromium.org>
2022-12-20 16:51:34 +00:00