Directx9 surface sharing

asked 2015-12-21 10:50:52 -0500

Boogaloo gravatar image

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.

edit retag flag offensive close merge delete


apart from your rant - what is your question ?

berak gravatar imageberak ( 2015-12-21 11:42:36 -0500 )edit

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?

Boogaloo gravatar imageBoogaloo ( 2015-12-21 12:03:56 -0500 )edit

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?

Boogaloo gravatar imageBoogaloo ( 2015-12-21 12:17:10 -0500 )edit

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! :)

Boogaloo gravatar imageBoogaloo ( 2015-12-22 04:06:57 -0500 )edit

^^ amusing read even, but how do you think, we could help you now ?

berak gravatar imageberak ( 2015-12-22 05:28:02 -0500 )edit

Okay, well, would it be useful to have DirectX-DirectShow<->UMat transfers/sharing on GPU?

Boogaloo gravatar imageBoogaloo ( 2015-12-22 08:17:39 -0500 )edit