adbbd0ba66
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> |
||
---|---|---|
.. | ||
access | ||
array | ||
bug/tint | ||
expressions | ||
intrinsics | ||
ptr_ref | ||
samples | ||
shader_io | ||
struct | ||
types | ||
var | ||
BUILD.gn | ||
extract-spvasm.py | ||
test-all.sh |