Directx9 surface sharing
Is there any updated help on this for 3.0.0? There is nothing listing on this forum, and in the web intel-only examples that are out of date, and other stuff also that seems OOD.
Is there any updated help on this for 3.0.0? There is nothing listing on this forum, and in the web intel-only examples that are out of date, and other stuff also that seems OOD.
Asked: 2015-12-21 10:50:52 -0600
Seen: 382 times
Last updated: Dec 21 '15
apart from your rant - what is your question ?
Okay, cv::directx::ocl::initializeContextFromDirect3DDevice9(..) is failing to find the Khr extension for surface sharing on any installed device; I have an AMD R290 GPU. I´m wondering if AMD support this in their OpenCL driver, or if DX9 support is dropped?
Just found this from 2013 on the AMD forum "By German on 09-Mar-2013 18:43 'Does runtime report cl_khr_dx9_media_sharing extension? You can't use an extension if runtime doesn't report it:-) Anyhow we should support DX9 interop internally, but runtime doesn't report the extension:-). There is a limitation. You have to use IDirect3DDevice9Ex device object and CL_ADAPTER_D3D9EX_KHR as adapter type. Please note, if shared_handle is NULL, then you will have double copy (acquire/release) - no direct access." - Does anyone have any more info?
Given the importance of fast memory transfer to GPU from DirectShow and DirectX, it is very surprising that support for these operations, especially given the marketing of unified memory architecture, is so very poor or simply non-existent. If I had access to the damn AMD or Intel driver code I could add this in very short time, so why doesn't this get fixed?! (that's a rant! :)
^^ amusing read even, but how do you think, we could help you now ?
Okay, well, would it be useful to have DirectX-DirectShow<->UMat transfers/sharing on GPU?