GLSL: fix Select op with a bool vector condition.

The fix is in the mix().

Bug: tint:1429
Change-Id: Id128ead6b124cd364f45a860ad991977be94be5b
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/80660
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
This commit is contained in:
Stephen White
2022-02-15 20:00:27 +00:00
committed by Tint LUCI CQ
parent 5f6a185d02
commit 4a15605be7
21 changed files with 55 additions and 774 deletions

View File

@@ -1,25 +0,0 @@
SKIP: FAILED
#version 310 es
precision mediump float;
void main_1() {
uvec2 x_1 = (bvec2(true, false) ? uvec2(10u, 20u) : uvec2(20u, 10u));
return;
}
void tint_symbol() {
main_1();
}
void main() {
tint_symbol();
return;
}
Error parsing GLSL shader:
ERROR: 0:5: '' : boolean expression expected
ERROR: 0:5: '' : compilation terminated
ERROR: 2 compilation errors. No code generated.