Skip to content

Commit

Permalink
[msl] Regenerate E2E expectations
Browse files Browse the repository at this point in the history
Bug: 42251016
No-Try: True
Change-Id: I965c82133c75c29bd10ada078e0dfeeb1c205785
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/203634
Reviewed-by: dan sinclair <[email protected]>
Auto-Submit: James Price <[email protected]>
Commit-Queue: James Price <[email protected]>
  • Loading branch information
jrprice authored and Dawn LUCI CQ committed Aug 22, 2024
1 parent 2af9de8 commit b2d106e
Show file tree
Hide file tree
Showing 41 changed files with 232 additions and 108 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ struct tint_module_vars_struct {
};

float4 textureSampleBias_80e579(tint_module_vars_struct tint_module_vars) {
int const v = max(1, 0);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), v, bias(1.0f));
bias const v = bias(1.0f);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), max(1, 0), v);
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ struct tint_module_vars_struct {
};

float4 textureSampleBias_9dbb51(tint_module_vars_struct tint_module_vars) {
int const v = max(1, 0);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), v, bias(1.0f), int2(1));
bias const v = bias(1.0f);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), max(1, 0), v, int2(1));
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ struct tint_module_vars_struct {
};

float4 textureSampleBias_eed7c4(tint_module_vars_struct tint_module_vars) {
int const v = max(1, 0);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float3(1.0f), v, bias(1.0f));
bias const v = bias(1.0f);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float3(1.0f), max(1, 0), v);
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ struct vertex_main_outputs {
};

float textureSampleCompareLevel_1116ed(tint_module_vars_struct tint_module_vars) {
int const v = max(1, 0);
float res = tint_module_vars.arg_0.sample_compare(tint_module_vars.arg_1, float2(1.0f), v, 1.0f, level(0u));
level const v = level(0u);
float res = tint_module_vars.arg_0.sample_compare(tint_module_vars.arg_1, float2(1.0f), max(1, 0), 1.0f, v);
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ struct vertex_main_outputs {
};

float textureSampleCompareLevel_4cf3a2(tint_module_vars_struct tint_module_vars) {
int const v = max(1, 0);
float res = tint_module_vars.arg_0.sample_compare(tint_module_vars.arg_1, float3(1.0f), v, 1.0f, level(0u));
level const v = level(0u);
float res = tint_module_vars.arg_0.sample_compare(tint_module_vars.arg_1, float3(1.0f), max(1, 0), 1.0f, v);
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ struct vertex_main_outputs {
};

float textureSampleCompareLevel_b6e47c(tint_module_vars_struct tint_module_vars) {
int const v = max(1, 0);
float res = tint_module_vars.arg_0.sample_compare(tint_module_vars.arg_1, float2(1.0f), v, 1.0f, level(0u), int2(1));
level const v = level(0u);
float res = tint_module_vars.arg_0.sample_compare(tint_module_vars.arg_1, float2(1.0f), max(1, 0), 1.0f, v, int2(1));
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ struct vertex_main_outputs {
};

float4 textureSampleGrad_2ecd8f(tint_module_vars_struct tint_module_vars) {
int const v = max(1, 0);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), v, gradient2d(float2(1.0f), float2(1.0f)));
gradient2d const v = gradient2d(float2(1.0f), float2(1.0f));
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), max(1, 0), v);
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ struct vertex_main_outputs {
};

float4 textureSampleGrad_d65515(tint_module_vars_struct tint_module_vars) {
int const v = max(1, 0);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), v, gradient2d(float2(1.0f), float2(1.0f)), int2(1));
gradient2d const v = gradient2d(float2(1.0f), float2(1.0f));
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), max(1, 0), v, int2(1));
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ struct vertex_main_outputs {
};

float4 textureSampleGrad_e383db(tint_module_vars_struct tint_module_vars) {
int const v = max(1, 0);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float3(1.0f), v, gradientcube(float3(1.0f), float3(1.0f)));
gradientcube const v = gradientcube(float3(1.0f), float3(1.0f));
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float3(1.0f), max(1, 0), v);
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ struct vertex_main_outputs {
};

float4 textureSampleLevel_0bdd9a(tint_module_vars_struct tint_module_vars) {
int const v = max(1, 0);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float3(1.0f), v, level(1.0f));
level const v = level(1.0f);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float3(1.0f), max(1, 0), v);
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ struct vertex_main_outputs {
};

float textureSampleLevel_1bf73e(tint_module_vars_struct tint_module_vars) {
int const v = max(1, 0);
float res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), v, level(1));
level const v = level(1);
float res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), max(1, 0), v);
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ struct vertex_main_outputs {
};

float textureSampleLevel_2974eb(tint_module_vars_struct tint_module_vars) {
int const v = max(1, 0);
float res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), v, level(1u));
level const v = level(1u);
float res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), max(1, 0), v);
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ struct vertex_main_outputs {
};

float4 textureSampleLevel_302be4(tint_module_vars_struct tint_module_vars) {
int const v = max(1, 0);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), v, level(1.0f));
level const v = level(1.0f);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), max(1, 0), v);
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ struct vertex_main_outputs {
};

float textureSampleLevel_36780e(tint_module_vars_struct tint_module_vars) {
int const v = max(1, 0);
float res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), v, level(1), int2(1));
level const v = level(1);
float res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), max(1, 0), v, int2(1));
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ struct vertex_main_outputs {
};

float textureSampleLevel_36f0d3(tint_module_vars_struct tint_module_vars) {
int const v = max(1, 0);
float res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), v, level(1u), int2(1));
level const v = level(1u);
float res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), max(1, 0), v, int2(1));
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ struct vertex_main_outputs {
};

float textureSampleLevel_a12142(tint_module_vars_struct tint_module_vars) {
int const v = max(1, 0);
float res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float3(1.0f), v, level(1u));
level const v = level(1u);
float res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float3(1.0f), max(1, 0), v);
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ struct vertex_main_outputs {
};

float textureSampleLevel_ae5e39(tint_module_vars_struct tint_module_vars) {
int const v = max(1, 0);
float res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float3(1.0f), v, level(1));
level const v = level(1);
float res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float3(1.0f), max(1, 0), v);
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ struct vertex_main_outputs {
};

float4 textureSampleLevel_b7c55c(tint_module_vars_struct tint_module_vars) {
int const v = max(1, 0);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), v, level(1.0f), int2(1));
level const v = level(1.0f);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, float2(1.0f), max(1, 0), v, int2(1));
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct vertex_main_outputs {
int VertexOutput_prevent_dce [[user(locn0)]] [[flat]];
};

int tint_packed_8bit_dot(int lhs, int rhs) {
int tint_packed_8bit_dot(uint lhs, uint rhs) {
char4 const v = as_type<char4>(lhs);
char4 const v_1 = as_type<char4>(rhs);
return int(((((v[0u] * v_1[0u]) + (v[1u] * v_1[1u])) + (v[2u] * v_1[2u])) + (v[3u] * v_1[3u])));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ float4 textureSampleBias_80e579(tint_module_vars_struct tint_module_vars) {
int arg_3 = 1;
float arg_4 = 1.0f;
float2 const v = arg_2;
float const v_1 = arg_4;
int const v_2 = max(arg_3, 0);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, v, v_2, bias(v_1));
int const v_1 = arg_3;
bias const v_2 = bias(arg_4);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, v, max(v_1, 0), v_2);
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ float4 textureSampleBias_9dbb51(tint_module_vars_struct tint_module_vars) {
int arg_3 = 1;
float arg_4 = 1.0f;
float2 const v = arg_2;
float const v_1 = arg_4;
int const v_2 = max(arg_3, 0);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, v, v_2, bias(v_1), int2(1));
int const v_1 = arg_3;
bias const v_2 = bias(arg_4);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, v, max(v_1, 0), v_2, int2(1));
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ float4 textureSampleBias_eed7c4(tint_module_vars_struct tint_module_vars) {
int arg_3 = 1;
float arg_4 = 1.0f;
float3 const v = arg_2;
float const v_1 = arg_4;
int const v_2 = max(arg_3, 0);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, v, v_2, bias(v_1));
int const v_1 = arg_3;
bias const v_2 = bias(arg_4);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, v, max(v_1, 0), v_2);
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ float textureSampleCompareLevel_1116ed(tint_module_vars_struct tint_module_vars)
int arg_3 = 1;
float arg_4 = 1.0f;
float2 const v = arg_2;
float const v_1 = arg_4;
int const v_2 = max(arg_3, 0);
float res = tint_module_vars.arg_0.sample_compare(tint_module_vars.arg_1, v, v_2, v_1, level(0u));
int const v_1 = arg_3;
float const v_2 = arg_4;
level const v_3 = level(0u);
float res = tint_module_vars.arg_0.sample_compare(tint_module_vars.arg_1, v, max(v_1, 0), v_2, v_3);
return res;
}

Expand All @@ -47,6 +48,6 @@ VertexOutput vertex_main_inner(tint_module_vars_struct tint_module_vars) {

vertex vertex_main_outputs vertex_main(depth2d_array<float, access::sample> arg_0 [[texture(0)]], sampler arg_1 [[sampler(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0, .arg_1=arg_1};
VertexOutput const v_3 = vertex_main_inner(tint_module_vars);
return vertex_main_outputs{.VertexOutput_pos=v_3.pos, .VertexOutput_prevent_dce=v_3.prevent_dce};
VertexOutput const v_4 = vertex_main_inner(tint_module_vars);
return vertex_main_outputs{.VertexOutput_pos=v_4.pos, .VertexOutput_prevent_dce=v_4.prevent_dce};
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ float textureSampleCompareLevel_4cf3a2(tint_module_vars_struct tint_module_vars)
int arg_3 = 1;
float arg_4 = 1.0f;
float3 const v = arg_2;
float const v_1 = arg_4;
int const v_2 = max(arg_3, 0);
float res = tint_module_vars.arg_0.sample_compare(tint_module_vars.arg_1, v, v_2, v_1, level(0u));
int const v_1 = arg_3;
float const v_2 = arg_4;
level const v_3 = level(0u);
float res = tint_module_vars.arg_0.sample_compare(tint_module_vars.arg_1, v, max(v_1, 0), v_2, v_3);
return res;
}

Expand All @@ -47,6 +48,6 @@ VertexOutput vertex_main_inner(tint_module_vars_struct tint_module_vars) {

vertex vertex_main_outputs vertex_main(depthcube_array<float, access::sample> arg_0 [[texture(0)]], sampler arg_1 [[sampler(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0, .arg_1=arg_1};
VertexOutput const v_3 = vertex_main_inner(tint_module_vars);
return vertex_main_outputs{.VertexOutput_pos=v_3.pos, .VertexOutput_prevent_dce=v_3.prevent_dce};
VertexOutput const v_4 = vertex_main_inner(tint_module_vars);
return vertex_main_outputs{.VertexOutput_pos=v_4.pos, .VertexOutput_prevent_dce=v_4.prevent_dce};
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ float textureSampleCompareLevel_b6e47c(tint_module_vars_struct tint_module_vars)
int arg_3 = 1;
float arg_4 = 1.0f;
float2 const v = arg_2;
float const v_1 = arg_4;
int const v_2 = max(arg_3, 0);
float res = tint_module_vars.arg_0.sample_compare(tint_module_vars.arg_1, v, v_2, v_1, level(0u), int2(1));
int const v_1 = arg_3;
float const v_2 = arg_4;
level const v_3 = level(0u);
float res = tint_module_vars.arg_0.sample_compare(tint_module_vars.arg_1, v, max(v_1, 0), v_2, v_3, int2(1));
return res;
}

Expand All @@ -47,6 +48,6 @@ VertexOutput vertex_main_inner(tint_module_vars_struct tint_module_vars) {

vertex vertex_main_outputs vertex_main(depth2d_array<float, access::sample> arg_0 [[texture(0)]], sampler arg_1 [[sampler(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0, .arg_1=arg_1};
VertexOutput const v_3 = vertex_main_inner(tint_module_vars);
return vertex_main_outputs{.VertexOutput_pos=v_3.pos, .VertexOutput_prevent_dce=v_3.prevent_dce};
VertexOutput const v_4 = vertex_main_inner(tint_module_vars);
return vertex_main_outputs{.VertexOutput_pos=v_4.pos, .VertexOutput_prevent_dce=v_4.prevent_dce};
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ float4 textureSampleGrad_2ecd8f(tint_module_vars_struct tint_module_vars) {
float2 arg_4 = float2(1.0f);
float2 arg_5 = float2(1.0f);
float2 const v = arg_2;
float2 const v_1 = arg_4;
float2 const v_2 = arg_5;
int const v_3 = max(arg_3, 0);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, v, v_3, gradient2d(v_1, v_2));
int const v_1 = arg_3;
gradient2d const v_2 = gradient2d(arg_4, arg_5);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, v, max(v_1, 0), v_2);
return res;
}

Expand All @@ -49,6 +48,6 @@ VertexOutput vertex_main_inner(tint_module_vars_struct tint_module_vars) {

vertex vertex_main_outputs vertex_main(texture2d_array<float, access::sample> arg_0 [[texture(0)]], sampler arg_1 [[sampler(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0, .arg_1=arg_1};
VertexOutput const v_4 = vertex_main_inner(tint_module_vars);
return vertex_main_outputs{.VertexOutput_pos=v_4.pos, .VertexOutput_prevent_dce=v_4.prevent_dce};
VertexOutput const v_3 = vertex_main_inner(tint_module_vars);
return vertex_main_outputs{.VertexOutput_pos=v_3.pos, .VertexOutput_prevent_dce=v_3.prevent_dce};
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ float4 textureSampleGrad_d65515(tint_module_vars_struct tint_module_vars) {
float2 arg_4 = float2(1.0f);
float2 arg_5 = float2(1.0f);
float2 const v = arg_2;
float2 const v_1 = arg_4;
float2 const v_2 = arg_5;
int const v_3 = max(arg_3, 0);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, v, v_3, gradient2d(v_1, v_2), int2(1));
int const v_1 = arg_3;
gradient2d const v_2 = gradient2d(arg_4, arg_5);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, v, max(v_1, 0), v_2, int2(1));
return res;
}

Expand All @@ -49,6 +48,6 @@ VertexOutput vertex_main_inner(tint_module_vars_struct tint_module_vars) {

vertex vertex_main_outputs vertex_main(texture2d_array<float, access::sample> arg_0 [[texture(0)]], sampler arg_1 [[sampler(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0, .arg_1=arg_1};
VertexOutput const v_4 = vertex_main_inner(tint_module_vars);
return vertex_main_outputs{.VertexOutput_pos=v_4.pos, .VertexOutput_prevent_dce=v_4.prevent_dce};
VertexOutput const v_3 = vertex_main_inner(tint_module_vars);
return vertex_main_outputs{.VertexOutput_pos=v_3.pos, .VertexOutput_prevent_dce=v_3.prevent_dce};
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ float4 textureSampleGrad_e383db(tint_module_vars_struct tint_module_vars) {
float3 arg_4 = float3(1.0f);
float3 arg_5 = float3(1.0f);
float3 const v = arg_2;
float3 const v_1 = arg_4;
float3 const v_2 = arg_5;
int const v_3 = max(arg_3, 0);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, v, v_3, gradientcube(v_1, v_2));
int const v_1 = arg_3;
gradientcube const v_2 = gradientcube(arg_4, arg_5);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, v, max(v_1, 0), v_2);
return res;
}

Expand All @@ -49,6 +48,6 @@ VertexOutput vertex_main_inner(tint_module_vars_struct tint_module_vars) {

vertex vertex_main_outputs vertex_main(texturecube_array<float, access::sample> arg_0 [[texture(0)]], sampler arg_1 [[sampler(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.arg_0=arg_0, .arg_1=arg_1};
VertexOutput const v_4 = vertex_main_inner(tint_module_vars);
return vertex_main_outputs{.VertexOutput_pos=v_4.pos, .VertexOutput_prevent_dce=v_4.prevent_dce};
VertexOutput const v_3 = vertex_main_inner(tint_module_vars);
return vertex_main_outputs{.VertexOutput_pos=v_3.pos, .VertexOutput_prevent_dce=v_3.prevent_dce};
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ float4 textureSampleLevel_0bdd9a(tint_module_vars_struct tint_module_vars) {
int arg_3 = 1;
float arg_4 = 1.0f;
float3 const v = arg_2;
float const v_1 = arg_4;
int const v_2 = max(arg_3, 0);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, v, v_2, level(v_1));
int const v_1 = arg_3;
level const v_2 = level(arg_4);
float4 res = tint_module_vars.arg_0.sample(tint_module_vars.arg_1, v, max(v_1, 0), v_2);
return res;
}

Expand Down
Loading

0 comments on commit b2d106e

Please sign in to comment.