dawn-cmake/test/bug/chromium
Antonio Maiorano 821f9bb525 Fix FXC compile errors on divide by zero
FXC fails to compile when it determines that the rhs of an integral
division is zero with "error X4010: Unsigned integer divide by zero".

bclayton's fix (https://dawn-review.googlesource.com/c/tint/+/60500)
addressed cases for division by an integer constant 0. This CL adds the
missing support for division by integral vectors with 0 components.

FXC also fails on division by integral expressions that it can fold to
0. To handle these cases, we now emit a runtime check for 0 and replace
by 1. In the cases I've tested, FXC seems able to optimize these checks
away.

Bug: tint:1083
Change-Id: I02f08e9077882f03c1e42b62dacb742a48fa48ba
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/73580
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
2021-12-21 14:48:26 +00:00
..
1221120.wgsl ast: Fix nullptr deref in Variable::info_to_str 2021-06-21 19:20:16 +00:00
1221120.wgsl.expected.glsl GLSL: add .expected.glsl files for all tests. 2021-11-16 15:15:36 +00:00
1221120.wgsl.expected.hlsl ast: Fix nullptr deref in Variable::info_to_str 2021-06-21 19:20:16 +00:00
1221120.wgsl.expected.msl ast: Fix nullptr deref in Variable::info_to_str 2021-06-21 19:20:16 +00:00
1221120.wgsl.expected.spvasm ast: Fix nullptr deref in Variable::info_to_str 2021-06-21 19:20:16 +00:00
1221120.wgsl.expected.wgsl ast: Fix nullptr deref in Variable::info_to_str 2021-06-21 19:20:16 +00:00
1236161.wgsl Fix structure builtin emission 2021-08-04 22:03:28 +00:00
1236161.wgsl.expected.glsl GLSL: add .expected.glsl files for all tests. 2021-11-16 15:15:36 +00:00
1236161.wgsl.expected.hlsl Fix structure builtin emission 2021-08-04 22:03:28 +00:00
1236161.wgsl.expected.msl Fix structure builtin emission 2021-08-04 22:03:28 +00:00
1236161.wgsl.expected.spvasm reader/wgsl: Allow identifiers to start with an underscore 2021-11-19 21:52:13 +00:00
1236161.wgsl.expected.wgsl Fix structure builtin emission 2021-08-04 22:03:28 +00:00
1251009.wgsl transform: Avoid symbol collision in Canonicalize IO 2021-09-27 21:40:33 +00:00
1251009.wgsl.expected.glsl GLSL: add .expected.glsl files for all tests. 2021-11-16 15:15:36 +00:00
1251009.wgsl.expected.hlsl transform: Avoid symbol collision in Canonicalize IO 2021-09-27 21:40:33 +00:00
1251009.wgsl.expected.msl transform: Avoid symbol collision in Canonicalize IO 2021-09-27 21:40:33 +00:00
1251009.wgsl.expected.spvasm transform: Avoid symbol collision in Canonicalize IO 2021-09-27 21:40:33 +00:00
1251009.wgsl.expected.wgsl transform: Avoid symbol collision in Canonicalize IO 2021-09-27 21:40:33 +00:00
1273230.wgsl tests: Stop using the [[block]] attribute 2021-12-09 15:45:03 +00:00
1273230.wgsl.expected.hlsl Fix FXC compile errors on divide by zero 2021-12-21 14:48:26 +00:00
1273230.wgsl.expected.msl writer/msl: Replace use of 'auto' with actual return type 2021-12-03 21:50:23 +00:00
1273230.wgsl.expected.spvasm transform: Don't consider type-ctor/casts as having side-effects 2021-11-25 16:10:28 +00:00
1273230.wgsl.expected.wgsl tests: Stop using the [[block]] attribute 2021-12-09 15:45:03 +00:00
1273451.wgsl resolver: Fix bug in dep graph SortGlobals() 2021-11-25 18:07:57 +00:00
1273451.wgsl.expected.hlsl e2e tests: generate missing expected files 2021-12-18 21:28:23 +00:00
1273451.wgsl.expected.msl writer/msl: Replace use of 'auto' with actual return type 2021-12-03 21:50:23 +00:00
1273451.wgsl.expected.spvasm e2e tests: generate missing expected files 2021-12-18 21:28:23 +00:00
1273451.wgsl.expected.wgsl e2e tests: generate missing expected files 2021-12-18 21:28:23 +00:00