test: Regenerate vk-gl-cts WGSL sources

This removes @stride, which will soon be invalid.

Bug: tint:1381
Change-Id: I3cbe987edb9b918b2f344b92a4f0fe4838df4a80
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/83962
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
James Price
2022-03-21 16:09:17 +00:00
parent 6bd90d666e
commit 1a72a76e4f
594 changed files with 5734 additions and 10489 deletions

View File

@@ -1,8 +1,13 @@
type Arr = @stride(16) array<f32, 3>;
struct strided_arr {
@size(16)
el : f32;
}
type Arr = array<strided_arr, 3u>;
struct buf0 {
x_GLF_uniform_float_values : Arr;
};
}
var<private> x_GLF_color : vec4<f32>;
@@ -10,16 +15,16 @@ var<private> x_GLF_color : vec4<f32>;
fn main_1() {
var a : f32;
a = (bitcast<f32>(1u) % 1.0);
let x_29 : f32 = x_6.x_GLF_uniform_float_values[1];
a = (bitcast<f32>(1u) - (1.0 * floor((bitcast<f32>(1u) / 1.0))));
let x_29 : f32 = x_6.x_GLF_uniform_float_values[1].el;
x_GLF_color = vec4<f32>(x_29, x_29, x_29, x_29);
let x_31 : f32 = a;
let x_33 : f32 = x_6.x_GLF_uniform_float_values[2];
let x_33 : f32 = x_6.x_GLF_uniform_float_values[2].el;
if ((x_31 < x_33)) {
let x_38 : f32 = x_6.x_GLF_uniform_float_values[0];
let x_40 : f32 = x_6.x_GLF_uniform_float_values[1];
let x_42 : f32 = x_6.x_GLF_uniform_float_values[1];
let x_44 : f32 = x_6.x_GLF_uniform_float_values[0];
let x_38 : f32 = x_6.x_GLF_uniform_float_values[0].el;
let x_40 : f32 = x_6.x_GLF_uniform_float_values[1].el;
let x_42 : f32 = x_6.x_GLF_uniform_float_values[1].el;
let x_44 : f32 = x_6.x_GLF_uniform_float_values[0].el;
x_GLF_color = vec4<f32>(x_38, x_40, x_42, x_44);
}
return;
@@ -28,7 +33,7 @@ fn main_1() {
struct main_out {
@location(0)
x_GLF_color_1 : vec4<f32>;
};
}
@stage(fragment)
fn main() -> main_out {

View File

@@ -1,58 +0,0 @@
vk-gl-cts/graphicsfuzz/cov-mod-uint-bits-float/0-opt.wgsl:1:13 warning: use of deprecated language feature: the @stride attribute is deprecated; use a larger type if necessary
type Arr = @stride(16) array<f32, 3>;
^^^^^^
#version 310 es
precision mediump float;
float tint_float_modulo(float lhs, float rhs) {
return (lhs - rhs * trunc(lhs / rhs));
}
layout(location = 0) out vec4 x_GLF_color_1_1;
struct tint_padded_array_element {
float el;
};
struct buf0 {
tint_padded_array_element x_GLF_uniform_float_values[3];
};
vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f);
layout(binding = 0) uniform buf0_1 {
tint_padded_array_element x_GLF_uniform_float_values[3];
} x_6;
void main_1() {
float a = 0.0f;
a = tint_float_modulo(uintBitsToFloat(1u), 1.0f);
float x_29 = x_6.x_GLF_uniform_float_values[1].el;
x_GLF_color = vec4(x_29, x_29, x_29, x_29);
float x_31 = a;
float x_33 = x_6.x_GLF_uniform_float_values[2].el;
if ((x_31 < x_33)) {
float x_38 = x_6.x_GLF_uniform_float_values[0].el;
float x_40 = x_6.x_GLF_uniform_float_values[1].el;
float x_42 = x_6.x_GLF_uniform_float_values[1].el;
float x_44 = x_6.x_GLF_uniform_float_values[0].el;
x_GLF_color = vec4(x_38, x_40, x_42, x_44);
}
return;
}
struct main_out {
vec4 x_GLF_color_1;
};
main_out tint_symbol() {
main_1();
main_out tint_symbol_1 = main_out(x_GLF_color);
return tint_symbol_1;
}
void main() {
main_out inner_result = tint_symbol();
x_GLF_color_1_1 = inner_result.x_GLF_color_1;
return;
}