Remove if check that is always true
@@ -1290,8 +1290,6 @@ void recompute_ideal_colors_2planes(
float idx1 = 0.0f;
float om_idx1 = 0.0f;
- if (plane2_weight_set8)
- {
idx1 = bilinear_infill(*dt, plane2_weight_set, tix);
om_idx1 = 1.0f - idx1;
@@ -1305,7 +1303,6 @@ void recompute_ideal_colors_2planes(
left2_sum += left2;
middle2_sum += middle2;
right2_sum += right2;
- }
vmask4 p2_mask = vint4::lane_id() == vint4(plane2_component);
vfloat4 color_idx = select(vfloat4(idx0), vfloat4(idx1), p2_mask);
@@ -1422,8 +1419,6 @@ void recompute_ideal_colors_2planes(
#endif
}
- if (plane2_weight_set8)
- {
if (wmin2 >= wmax2 * 0.999f)
{
// if all weights in the partition were equal, then just take average
@@ -1467,7 +1462,6 @@ void recompute_ideal_colors_2planes(
feenableexcept(FE_DIVBYZERO | FE_INVALID);
#endif
}
- }
// if the calculation of an RGB-offset vector failed, try to compute
// a somewhat-sensible value anyway
