compute-runtime icon indicating copy to clipboard operation
compute-runtime copied to clipboard

Support resource sharing via EGL

Open krogueintel opened this issue 7 years ago • 3 comments

Looking at runtime/api/dispatch.cpp, it appears that data sharing via EGL is not supported.

Would it be possible to add support for such images to enable more generic data sharing across API's and processes? I am looking into enabling video format conversion using OpenCL for destination formats not naively supported by the Intel Media driver (https://github.com/intel/media-driver).

Very limited support is fine where the input EGLImage are only allowed to be single-plane 1,2,3 or 4 channel formats and the OpenCL application would do the color conversion (both reads and writes) itself.

Edit: changed to Intel Media driver as I mean to use/deal with the officially support VA driver.

krogueintel avatar Oct 22 '18 10:10 krogueintel

We are discussing this internally, should have conclusions in a few weeks.

PiotrRozenfeld avatar Nov 05 '18 09:11 PiotrRozenfeld

If it is helpful, I can likely implement this already (by imitating the existing code in compute_runtime for VASurface and the code in Mesa/i965).

krogueintel avatar Nov 09 '18 12:11 krogueintel

Contributions are always welcome.

PiotrRozenfeld avatar Nov 14 '18 09:11 PiotrRozenfeld