dawn-cmake/test/vk-gl-cts/graphicsfuzz/cov-unused-access-past-matr.../0-opt.wgsl.expected.glsl

137 lines
4.4 KiB
Plaintext
Raw Normal View History

SKIP: FAILED
vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/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>;
^^^^^^
vk-gl-cts/graphicsfuzz/cov-unused-access-past-matrix-elements/0-opt.wgsl:7:15 warning: use of deprecated language feature: the @stride attribute is deprecated; use a larger type if necessary
type Arr_1 = @stride(16) array<i32, 4>;
^^^^^^
#version 310 es
precision mediump float;
struct tint_padded_array_element {
float el;
};
struct buf1 {
tint_padded_array_element x_GLF_uniform_float_values[3];
};
struct tint_padded_array_element_1 {
int el;
};
struct buf0 {
tint_padded_array_element_1 x_GLF_uniform_int_values[4];
};
layout(binding = 1) uniform buf1_1 {
tint_padded_array_element x_GLF_uniform_float_values[3];
} x_6;
layout(binding = 0) uniform buf0_1 {
tint_padded_array_element_1 x_GLF_uniform_int_values[4];
} x_8;
vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f);
void main_1() {
mat4x3 m43 = mat4x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
tint_padded_array_element sums[3] = tint_padded_array_element[3](tint_padded_array_element(0.0f), tint_padded_array_element(0.0f), tint_padded_array_element(0.0f));
int i = 0;
int a = 0;
int x_67_phi = 0;
float x_44 = x_6.x_GLF_uniform_float_values[1].el;
vec3 x_48 = vec3(0.0f, 0.0f, 0.0f);
m43 = mat4x3(vec3(x_44, 0.0f, 0.0f), vec3(0.0f, x_44, 0.0f), vec3(0.0f, 0.0f, x_44), vec3(0.0f, 0.0f, 0.0f));
int x_51 = x_8.x_GLF_uniform_int_values[0].el;
int x_53 = x_8.x_GLF_uniform_int_values[0].el;
float x_55 = x_6.x_GLF_uniform_float_values[0].el;
m43[x_51][x_53] = x_55;
float x_58 = x_6.x_GLF_uniform_float_values[0].el;
float x_60 = x_6.x_GLF_uniform_float_values[0].el;
float x_62 = x_6.x_GLF_uniform_float_values[0].el;
tint_padded_array_element tint_symbol_2[3] = tint_padded_array_element[3](tint_padded_array_element(x_58), tint_padded_array_element(x_60), tint_padded_array_element(x_62));
sums = tint_symbol_2;
int x_65 = x_8.x_GLF_uniform_int_values[0].el;
i = x_65;
x_67_phi = x_65;
while (true) {
int x_67 = x_67_phi;
int x_73 = x_8.x_GLF_uniform_int_values[3].el;
if ((x_67 < x_73)) {
} else {
break;
}
int x_77 = x_8.x_GLF_uniform_int_values[0].el;
int x_79 = x_8.x_GLF_uniform_int_values[0].el;
float x_81 = m43[x_67][x_79];
float x_83 = sums[x_77].el;
sums[x_77].el = (x_83 + x_81);
{
int x_68 = (x_67 + 1);
i = x_68;
x_67_phi = x_68;
}
}
int x_87 = x_8.x_GLF_uniform_int_values[1].el;
if ((x_87 == 1)) {
a = 4;
int x_92 = x_8.x_GLF_uniform_int_values[2].el;
int x_94 = x_8.x_GLF_uniform_int_values[0].el;
float x_96 = m43[4][x_94];
float x_98 = sums[x_92].el;
sums[x_92].el = (x_98 + x_96);
}
int x_102 = x_8.x_GLF_uniform_int_values[1].el;
float x_104 = sums[x_102].el;
int x_106 = x_8.x_GLF_uniform_int_values[0].el;
float x_108 = sums[x_106].el;
float x_111 = x_6.x_GLF_uniform_float_values[2].el;
if (((x_104 + x_108) == x_111)) {
int x_117 = x_8.x_GLF_uniform_int_values[0].el;
int x_120 = x_8.x_GLF_uniform_int_values[1].el;
int x_123 = x_8.x_GLF_uniform_int_values[1].el;
int x_126 = x_8.x_GLF_uniform_int_values[0].el;
x_GLF_color = vec4(float(x_117), float(x_120), float(x_123), float(x_126));
} else {
int x_130 = x_8.x_GLF_uniform_int_values[1].el;
float x_131 = float(x_130);
x_GLF_color = vec4(x_131, x_131, x_131, x_131);
}
return;
}
struct main_out {
vec4 x_GLF_color_1;
};
struct tint_symbol_1 {
vec4 x_GLF_color_1;
};
main_out tint_symbol_inner() {
main_1();
main_out tint_symbol_3 = main_out(x_GLF_color);
return tint_symbol_3;
}
tint_symbol_1 tint_symbol() {
main_out inner_result = tint_symbol_inner();
tint_symbol_1 wrapper_result = tint_symbol_1(vec4(0.0f, 0.0f, 0.0f, 0.0f));
wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1;
return wrapper_result;
}
layout(location = 0) out vec4 x_GLF_color_1;
void main() {
tint_symbol_1 outputs;
outputs = tint_symbol();
x_GLF_color_1 = outputs.x_GLF_color_1;
}
Error parsing GLSL shader:
ERROR: 0:69: '[' : matrix index out of range '4'
ERROR: 0:69: '=' : cannot convert from ' temp mediump 3-component vector of float' to ' temp mediump float'
ERROR: 0:69: '' : compilation terminated
ERROR: 3 compilation errors. No code generated.