Skip to content

Commit 2802dae

Browse files
author
Jason Sams
committed
Fix bug with 1D arrays and threading.
Some elements got launched multiple times. Change-Id: Icb257019df591a5d9525867c8ef8d18ef7d4cde5
1 parent 38b78b1 commit 2802dae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libs/rs/driver/rsdBcc.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,12 @@ static void wc_x(void *usr, uint32_t idx) {
267267
return;
268268
}
269269

270-
//LOGE("usr idx %i, x %i,%i y %i,%i", idx, mtls->xStart, mtls->xEnd, yStart, yEnd);
270+
//LOGE("usr slice %i idx %i, x %i,%i", slice, idx, xStart, xEnd);
271271
//LOGE("usr ptr in %p, out %p", mtls->ptrIn, mtls->ptrOut);
272+
272273
p.out = mtls->ptrOut + (mtls->eStrideOut * xStart);
273274
p.in = mtls->ptrIn + (mtls->eStrideIn * xStart);
274-
fn(&mtls->script->mHal.info.root, &p, mtls->xStart, mtls->xEnd,
275-
mtls->eStrideIn, mtls->eStrideOut);
275+
fn(&mtls->script->mHal.info.root, &p, xStart, xEnd, mtls->eStrideIn, mtls->eStrideOut);
276276
}
277277
}
278278

0 commit comments

Comments
 (0)