was wasting a ton of GPU on this debayer (#2566)

Co-authored-by: Comma Device <device@comma.ai>
pull/2569/head
George Hotz 5 years ago committed by GitHub
parent d409dabedd
commit 2f3e42169c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      selfdrive/camerad/cameras/camera_common.cc

@ -164,9 +164,8 @@ bool CameraBuf::acquire() {
}
assert(clSetKernelArg(krnl_debayer, 2, sizeof(float), &digital_gain) == 0);
const size_t debayer_work_size = rgb_height; // doesn't divide evenly, is this okay?
const size_t debayer_local_work_size = 128;
assert(clEnqueueNDRangeKernel(q, krnl_debayer, 1, NULL,
&debayer_work_size, &debayer_local_work_size, 0, 0, &debayer_event) == 0);
&debayer_work_size, NULL, 0, 0, &debayer_event) == 0);
#endif
} else {
assert(cur_rgb_buf->len >= frame_size);

Loading…
Cancel
Save