|
|
@ -22,6 +22,7 @@ |
|
|
|
#include "CL/cl_ext_qcom.h" |
|
|
|
#include "CL/cl_ext_qcom.h" |
|
|
|
#include "selfdrive/camerad/cameras/camera_qcom.h" |
|
|
|
#include "selfdrive/camerad/cameras/camera_qcom.h" |
|
|
|
#elif QCOM2 |
|
|
|
#elif QCOM2 |
|
|
|
|
|
|
|
#include "CL/cl_ext_qcom.h" |
|
|
|
#include "selfdrive/camerad/cameras/camera_qcom2.h" |
|
|
|
#include "selfdrive/camerad/cameras/camera_qcom2.h" |
|
|
|
#elif WEBCAM |
|
|
|
#elif WEBCAM |
|
|
|
#include "selfdrive/camerad/cameras/camera_webcam.h" |
|
|
|
#include "selfdrive/camerad/cameras/camera_webcam.h" |
|
|
@ -427,8 +428,7 @@ void common_process_driver_camera(MultiCameraState *s, CameraState *c, int cnt) |
|
|
|
|
|
|
|
|
|
|
|
void camerad_thread() { |
|
|
|
void camerad_thread() { |
|
|
|
cl_device_id device_id = cl_get_device_id(CL_DEVICE_TYPE_DEFAULT); |
|
|
|
cl_device_id device_id = cl_get_device_id(CL_DEVICE_TYPE_DEFAULT); |
|
|
|
// TODO: do this for QCOM2 too
|
|
|
|
#if defined(QCOM) || defined(QCOM2) |
|
|
|
#if defined(QCOM) |
|
|
|
|
|
|
|
const cl_context_properties props[] = {CL_CONTEXT_PRIORITY_HINT_QCOM, CL_PRIORITY_HINT_HIGH_QCOM, 0}; |
|
|
|
const cl_context_properties props[] = {CL_CONTEXT_PRIORITY_HINT_QCOM, CL_PRIORITY_HINT_HIGH_QCOM, 0}; |
|
|
|
cl_context context = CL_CHECK_ERR(clCreateContext(props, 1, &device_id, NULL, NULL, &err)); |
|
|
|
cl_context context = CL_CHECK_ERR(clCreateContext(props, 1, &device_id, NULL, NULL, &err)); |
|
|
|
#else |
|
|
|
#else |
|
|
|