fix camerad qcom2 build

pull/19514/head
Comma Device 2020-12-15 04:52:40 +00:00
parent c4a05ba369
commit 536a8c5876
1 changed files with 3 additions and 2 deletions

View File

@ -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