@@ -128,6 +128,9 @@ calculatenormal(const Dual2<Vec3>& tmpP, bool flipHandedness)
128128
129129
130130
131+ OSL_PRAGMA_WARNING_PUSH
132+ OSL_NONINTEL_CLANG_PRAGMA (GCC diagnostic ignored " -Wpass-failed" )
133+ 131134OSL_BATCHOP void
132135__OSL_OP2 (length, Wf, Wv)(void * r_, void * V_)
133136{
@@ -136,7 +139,7 @@ __OSL_OP2(length, Wf, Wv)(void* r_, void* V_)
136139 Wide<const Vec3> wV (V_);
137140 Wide<float > wr (r_);
138141
139- OSL_OMP_PRAGMA (omp simd simdlen (__OSL_WIDTH))
142+ OSL_OMP_SIMD_LOOP ( simdlen (__OSL_WIDTH))
140143 for (int lane = 0 ; lane < __OSL_WIDTH; ++lane) {
141144 Vec3 V = wV[lane];
142145 float r = sfm::length (V);
@@ -155,7 +158,7 @@ __OSL_MASKED_OP2(length, Wf, Wv)(void* r_, void* V_, unsigned int mask_value)
155158 Wide<const Vec3> wV (V_);
156159 Masked<float > wr (r_, Mask (mask_value));
157160
158- OSL_OMP_PRAGMA (omp simd simdlen (__OSL_WIDTH))
161+ OSL_OMP_SIMD_LOOP ( simdlen (__OSL_WIDTH))
159162 for (int lane = 0 ; lane < __OSL_WIDTH; ++lane) {
160163 Vec3 V = wV[lane];
161164 if (wr.mask ()[lane]) {
@@ -166,6 +169,8 @@ __OSL_MASKED_OP2(length, Wf, Wv)(void* r_, void* V_, unsigned int mask_value)
166169 }
167170}
168171
172+ OSL_PRAGMA_WARNING_POP
173+ 169174
170175
171176OSL_BATCHOP void
@@ -208,6 +213,9 @@ __OSL_MASKED_OP2(length, Wdf, Wdv)(void* r_, void* V_, unsigned int mask_value)
208213
209214
210215
216+ OSL_PRAGMA_WARNING_PUSH
217+ OSL_NONINTEL_CLANG_PRAGMA (GCC diagnostic ignored " -Wpass-failed" )
218+ 211219OSL_BATCHOP void
212220__OSL_OP2 (area, Wf, Wdv)(void * r_, void * DP_)
213221{
@@ -217,7 +225,7 @@ __OSL_OP2(area, Wf, Wdv)(void* r_, void* DP_)
217225
218226 Wide<float > wr (r_);
219227
220- OSL_OMP_PRAGMA (omp simd simdlen (__OSL_WIDTH))
228+ OSL_OMP_SIMD_LOOP ( simdlen (__OSL_WIDTH))
221229 for (int lane = 0 ; lane < __OSL_WIDTH; ++lane) {
222230 Dual2<Vec3> DP = wDP[lane];
223231
@@ -240,7 +248,7 @@ __OSL_MASKED_OP2(area, Wf, Wdv)(void* r_, void* DP_, unsigned int mask_value)
240248
241249 Masked<float > wr (r_, Mask (mask_value));
242250
243- OSL_OMP_PRAGMA (omp simd simdlen (__OSL_WIDTH))
251+ OSL_OMP_SIMD_LOOP ( simdlen (__OSL_WIDTH))
244252 for (int lane = 0 ; lane < __OSL_WIDTH; ++lane) {
245253 Dual2<Vec3> DP = wDP[lane];
246254 if (wr.mask ()[lane]) {
@@ -253,6 +261,8 @@ __OSL_MASKED_OP2(area, Wf, Wdv)(void* r_, void* DP_, unsigned int mask_value)
253261 }
254262}
255263
264+ OSL_PRAGMA_WARNING_POP
265+ 256266
257267
258268OSL_BATCHOP void
@@ -447,6 +457,9 @@ __OSL_MASKED_OP3(distance, Wdf, Wdv, Wdv)(void* r_, void* a_, void* b_,
447457
448458
449459
460+ OSL_PRAGMA_WARNING_PUSH
461+ OSL_NONINTEL_CLANG_PRAGMA (GCC diagnostic ignored " -Wpass-failed" )
462+ 450463OSL_BATCHOP void
451464__OSL_OP2 (normalize, Wv, Wv)(void * r_, void * V_)
452465{
@@ -455,7 +468,7 @@ __OSL_OP2(normalize, Wv, Wv)(void* r_, void* V_)
455468 Wide<const Vec3> wV (V_);
456469 Wide<Vec3> wr (r_);
457470
458- OSL_OMP_PRAGMA (omp simd simdlen (__OSL_WIDTH))
471+ OSL_OMP_SIMD_LOOP ( simdlen (__OSL_WIDTH))
459472 for (int lane = 0 ; lane < __OSL_WIDTH; ++lane) {
460473 Vec3 V = wV[lane];
461474 Vec3 N = sfm::normalize (V);
@@ -473,7 +486,7 @@ __OSL_MASKED_OP2(normalize, Wv, Wv)(void* r_, void* V_, unsigned int mask_value)
473486 Wide<const Vec3> wV (V_);
474487 Masked<Vec3> wr (r_, Mask (mask_value));
475488
476- OSL_OMP_PRAGMA (omp simd simdlen (__OSL_WIDTH))
489+ OSL_OMP_SIMD_LOOP ( simdlen (__OSL_WIDTH))
477490 for (int lane = 0 ; lane < __OSL_WIDTH; ++lane) {
478491 Vec3 V = wV[lane];
479492 if (wr.mask ()[lane]) {
@@ -484,6 +497,7 @@ __OSL_MASKED_OP2(normalize, Wv, Wv)(void* r_, void* V_, unsigned int mask_value)
484497 }
485498}
486499
500+ OSL_PRAGMA_WARNING_POP
487501
488502
489503OSL_BATCHOP void
0 commit comments