@@ -68,7 +68,7 @@ static void compute_partition_averages_rgb(
6868 {
6969 vint texel_partition (pi.partition_of_texel + i);
7070
71- vmask lane_mask = lane_id < vint (texel_count);
71+ vmask lane_mask = lane_id < vint_from_size (texel_count);
7272 lane_id += vint (ASTCENC_SIMD_WIDTH);
7373
7474 vmask p0_mask = lane_mask & (texel_partition == vint (0 ));
@@ -104,7 +104,7 @@ static void compute_partition_averages_rgb(
104104 {
105105 vint texel_partition (pi.partition_of_texel + i);
106106
107- vmask lane_mask = lane_id < vint (texel_count);
107+ vmask lane_mask = lane_id < vint_from_size (texel_count);
108108 lane_id += vint (ASTCENC_SIMD_WIDTH);
109109
110110 vmask p0_mask = lane_mask & (texel_partition == vint (0 ));
@@ -149,7 +149,7 @@ static void compute_partition_averages_rgb(
149149 {
150150 vint texel_partition (pi.partition_of_texel + i);
151151
152- vmask lane_mask = lane_id < vint (texel_count);
152+ vmask lane_mask = lane_id < vint_from_size (texel_count);
153153 lane_id += vint (ASTCENC_SIMD_WIDTH);
154154
155155 vmask p0_mask = lane_mask & (texel_partition == vint (0 ));
@@ -239,7 +239,7 @@ static void compute_partition_averages_rgba(
239239 {
240240 vint texel_partition (pi.partition_of_texel + i);
241241
242- vmask lane_mask = lane_id < vint (texel_count);
242+ vmask lane_mask = lane_id < vint_from_size (texel_count);
243243 lane_id += vint (ASTCENC_SIMD_WIDTH);
244244
245245 vmask p0_mask = lane_mask & (texel_partition == vint (0 ));
@@ -279,7 +279,7 @@ static void compute_partition_averages_rgba(
279279 {
280280 vint texel_partition (pi.partition_of_texel + i);
281281
282- vmask lane_mask = lane_id < vint (texel_count);
282+ vmask lane_mask = lane_id < vint_from_size (texel_count);
283283 lane_id += vint (ASTCENC_SIMD_WIDTH);
284284
285285 vmask p0_mask = lane_mask & (texel_partition == vint (0 ));
@@ -330,7 +330,7 @@ static void compute_partition_averages_rgba(
330330 {
331331 vint texel_partition (pi.partition_of_texel + i);
332332
333- vmask lane_mask = lane_id < vint (texel_count);
333+ vmask lane_mask = lane_id < vint_from_size (texel_count);
334334 lane_id += vint (ASTCENC_SIMD_WIDTH);
335335
336336 vmask p0_mask = lane_mask & (texel_partition == vint (0 ));
@@ -777,7 +777,7 @@ void compute_error_squared_rgba(
777777 vint lane_ids = vint::lane_id ();
778778 for (size_t i = 0 ; i < texel_count; i += ASTCENC_SIMD_WIDTH)
779779 {
780- vmask mask = lane_ids < vint (texel_count);
780+ vmask mask = lane_ids < vint_from_size (texel_count);
781781 const uint8_t * texel_idxs = texel_indexes + i;
782782
783783 vfloat data_r = gatherf_byte_inds<vfloat>(blk.data_r , texel_idxs);
@@ -891,7 +891,7 @@ void compute_error_squared_rgb(
891891 vint lane_ids = vint::lane_id ();
892892 for (size_t i = 0 ; i < texel_count; i += ASTCENC_SIMD_WIDTH)
893893 {
894- vmask mask = lane_ids < vint (texel_count);
894+ vmask mask = lane_ids < vint_from_size (texel_count);
895895 const uint8_t * texel_idxs = texel_indexes + i;
896896
897897 vfloat data_r = gatherf_byte_inds<vfloat>(blk.data_r , texel_idxs);
0 commit comments