Remove redundant quant_level mask
@@ -1317,9 +1317,7 @@ unsigned int compute_ideal_endpoint_formats(
for (unsigned int j = start_block_mode; j < end_block_mode; j += ASTCENC_SIMD_WIDTH)
{
vfloat err = vfloat(errors_of_best_combination + j);
- vmask mask1 = err < vbest_ep_error;
- vmask mask2 = vint(reinterpret_cast<int*>(best_quant_levels + j)) > vint(4);
- vmask mask = mask1 & mask2;
+ vmask mask = err < vbest_ep_error;
vbest_ep_error = select(vbest_ep_error, err, mask);
vbest_error_index = select(vbest_error_index, lane_ids, mask);
lane_ids += vint(ASTCENC_SIMD_WIDTH);
