OpenGL-OpenCL interop transfer times + texturing from bitmap

…衆ロ難τιáo~ 提交于 2019-12-05 07:55:46

The design intent behind the CL/GL interop acquire and release calls was for them to be simply ownership transfers. However, in many early implementations these were doing copies of the images from CL to GL and back.

Unless you use the sync object extensions in OpenCL 1.1, you need to clFinish before you release and glFinish before you acquire; you will see a lot of time spent here because all queued work will have to finish before these calls continue. Some platforms you can use clFlush instead of clFinish; check the OpenCL documentation from your vendor.

With the latest NVIDIA and AMD drivers on more or less recent hardware, I'm seeing the acquire and release calls going pretty quickly for HD video sized images.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!