clCreateContext fails when using CL_CONTEXT_D3D9_DEVICE_NV

Hi,

I’m trying to get the D3D9 interop to work using the cl_nv_d3d9_sharing extension, but the call to clCreateContext fails with CL_INVALID_DEVICE as error code. The call is successful when I don’t specify D3D9 interop in the properties. What’s strange is that the extension spec doesn’t mention CL_INVALID_DEVICE as a possible error caused by the extension, so I think this is a bug in the driver.

After searching around on the internet and this forum I haven’t been able to find a solution to this problem, or even what might cause it. Does anyone here know the answers to those questions?

Thanks in advance!

Rene