Skip to content

Commit c6e0f1d

Browse files
adeebshihadehComma Device
and
Comma Device
authored
camerad: adjust CL priority on comma three (commaai#23790)
Co-authored-by: Comma Device <device@comma.ai>
1 parent 3573a30 commit c6e0f1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

selfdrive/camerad/cameras/camera_common.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "CL/cl_ext_qcom.h"
2323
#include "selfdrive/camerad/cameras/camera_qcom.h"
2424
#elif QCOM2
25+
#include "CL/cl_ext_qcom.h"
2526
#include "selfdrive/camerad/cameras/camera_qcom2.h"
2627
#elif WEBCAM
2728
#include "selfdrive/camerad/cameras/camera_webcam.h"
@@ -427,8 +428,7 @@ void common_process_driver_camera(MultiCameraState *s, CameraState *c, int cnt)
427428

428429
void camerad_thread() {
429430
cl_device_id device_id = cl_get_device_id(CL_DEVICE_TYPE_DEFAULT);
430-
// TODO: do this for QCOM2 too
431-
#if defined(QCOM)
431+
#if defined(QCOM) || defined(QCOM2)
432432
const cl_context_properties props[] = {CL_CONTEXT_PRIORITY_HINT_QCOM, CL_PRIORITY_HINT_HIGH_QCOM, 0};
433433
cl_context context = CL_CHECK_ERR(clCreateContext(props, 1, &device_id, NULL, NULL, &err));
434434
#else

0 commit comments

Comments
 (0)