From 3e578e740933e0f24dedd70554c3459d9bcbb3ab Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 17 Feb 2022 19:49:10 -0800 Subject: [PATCH] camerad: adjust CL priority on comma three (#23790) Co-authored-by: Comma Device old-commit-hash: c6e0f1d84176cb4b65c81dff103b68b36862b700 --- selfdrive/camerad/cameras/camera_common.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/camerad/cameras/camera_common.cc b/selfdrive/camerad/cameras/camera_common.cc index b313f74e7e..a3e5eb48be 100644 --- a/selfdrive/camerad/cameras/camera_common.cc +++ b/selfdrive/camerad/cameras/camera_common.cc @@ -22,6 +22,7 @@ #include "CL/cl_ext_qcom.h" #include "selfdrive/camerad/cameras/camera_qcom.h" #elif QCOM2 +#include "CL/cl_ext_qcom.h" #include "selfdrive/camerad/cameras/camera_qcom2.h" #elif WEBCAM #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() { cl_device_id device_id = cl_get_device_id(CL_DEVICE_TYPE_DEFAULT); - // TODO: do this for QCOM2 too -#if defined(QCOM) +#if defined(QCOM) || defined(QCOM2) 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)); #else