mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-10-01 03:43:51 +08:00
@@ -110,6 +110,7 @@ void visionbuf_free(const VisionBuf* buf) {
|
||||
#if __OPENCL_VERSION__ >= 200
|
||||
clSVMFree(buf->ctx, buf->addr);
|
||||
#else
|
||||
clReleaseCommandQueue(buf->copy_q);
|
||||
munmap(buf->addr, buf->len);
|
||||
close(buf->fd);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user