From 1e4a874da06963abe039906bdc60dc3a9de5c55a Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 21 Mar 2022 20:32:28 -0700 Subject: [PATCH] camerad: set QCOM CL perf hint (#23791) Co-authored-by: Comma Device old-commit-hash: b079475ad3045300b26db54924f0c3db3e2e06d8 --- selfdrive/camerad/cameras/camera_common.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/camerad/cameras/camera_common.cc b/selfdrive/camerad/cameras/camera_common.cc index 0570364ec3..fd8a46559a 100644 --- a/selfdrive/camerad/cameras/camera_common.cc +++ b/selfdrive/camerad/cameras/camera_common.cc @@ -450,7 +450,8 @@ 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); #if defined(QCOM) || defined(QCOM2) - 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, + CL_CONTEXT_PERF_HINT_QCOM, CL_PERF_HINT_HIGH_QCOM, 0}; cl_context context = CL_CHECK_ERR(clCreateContext(props, 1, &device_id, NULL, NULL, &err)); #else cl_context context = CL_CHECK_ERR(clCreateContext(NULL, 1, &device_id, NULL, NULL, &err));