From cfce32acb5c5bad69a2e41b84d5dad97a6783643 Mon Sep 17 00:00:00 2001 From: Comma Device Date: Tue, 15 Dec 2020 04:52:40 +0000 Subject: [PATCH] fix camerad qcom2 build old-commit-hash: 536a8c587643bc4aa046c414b18292bd65b72caf --- selfdrive/camerad/main.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/selfdrive/camerad/main.cc b/selfdrive/camerad/main.cc index 0712b55a2a..a8dec1af9a 100644 --- a/selfdrive/camerad/main.cc +++ b/selfdrive/camerad/main.cc @@ -319,7 +319,7 @@ void party(cl_device_id device_id, cl_context context) { server_thread.join(); } -#if defined(QCOM) || defined(QCOM2) +#ifdef QCOM #include "CL/cl_ext_qcom.h" #endif @@ -336,7 +336,8 @@ int main(int argc, char *argv[]) { cl_device_id device_id = cl_get_device_id(CL_DEVICE_TYPE_DEFAULT); -#if defined(QCOM) || defined(QCOM2) + // TODO: do this for QCOM2 too +#if defined(QCOM) 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