dawn-cmake/test
Antonio Maiorano adbbd0ba66 Validate scalar constructor and implement conversion to vecN<bool> in spir-v backend
After implementing validation and fairly exhaustive tests, discovered
that conversion of scalar vector to bool vector did not work in the
spir-v backend. For module scope variables, we use and rely on the
FoldConstants transform to ensure no conversion needs to take place.
This is necessary because we cannot easily introduce temporary values
and refer to them when casting at module scope. Note that for the same
reason, module-level conversions are always constant foldable, so this
works. For function-level conversions, implemented support to emit a
comparison against a zero value, and store the result in the bool
vector.

Bug: tint:865
Change-Id: I0528045e803f176e03428bc7eac31ae06920bbd7
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/54744
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2021-06-18 15:32:21 +00:00
..
access spirv-reader: Set workgroup size, but not specializable 2021-06-17 22:40:43 +00:00
array transform/msl: Run InlinePointerLets and Simplify 2021-06-18 09:47:23 +00:00
bug/tint transform/msl: Run InlinePointerLets and Simplify 2021-06-18 09:47:23 +00:00
expressions Implement bitwise complement operator 2021-06-17 08:35:54 +00:00
intrinsics test/intrinsics: Include overload signature in test case 2021-06-17 20:04:45 +00:00
ptr_ref transform/msl: Run InlinePointerLets and Simplify 2021-06-18 09:47:23 +00:00
samples test: Generate HLSL expected case that now passes 2021-06-17 14:23:05 +00:00
shader_io writer/hlsl: Generate padding for UBO padded structs 2021-06-16 09:50:11 +00:00
struct writer/hlsl: Use the WrapArraysInStructs transform 2021-06-16 09:19:36 +00:00
types Validate scalar constructor and implement conversion to vecN<bool> in spir-v backend 2021-06-18 15:32:21 +00:00
var writer/hlsl: Use the WrapArraysInStructs transform 2021-06-16 09:19:36 +00:00
BUILD.gn resolver: Resolve atomic types 2021-06-17 19:56:14 +00:00
extract-spvasm.py Add --dump-spirv option to tint_unittests 2021-05-05 09:46:31 +00:00
test-all.sh main: Replace --dawn-validation with --validate 2021-06-02 21:02:34 +00:00