P4 to Git Change 1246105 by cpaquot@hog-ocl on 2016/03/10 15:13:37
SWDEV-89711 - Adding EGL interop capability: - Remove Context::Info::type_ and only use flags_, it's more accurate and type_ was just redundant - Plumbing work for EGL at the top of the API layer. ReviewBoardURL = http://ocltc.amd.com/reviews/r/9965/diff/ Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d10.cpp#11 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d11.cpp#18 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_d3d9.cpp#28 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_gl.cpp#48 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_gl_amd.hpp#18 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpudevice.hpp#94 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#269 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#542 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#157 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/hsadevice.cpp#56 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/hsadevice.hpp#25 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/context.cpp#40 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/context.hpp#24 edit
This commit is contained in:
@@ -1614,14 +1614,14 @@ public:
|
||||
|
||||
//! Return true if initialized external API interop, otherwise false
|
||||
virtual bool bindExternalDevice(
|
||||
intptr_t type, //!< Enum val. for ext.API type: GL, D3D10, etc.
|
||||
uint flags, //!< Enum val. for ext.API type: GL, D3D10, etc.
|
||||
void* pDevice, //!< D3D device do D3D, HDC/Display handle of X Window for GL
|
||||
void* pContext, //!< HGLRC/GLXContext handle
|
||||
bool validateOnly //! Only validate if the device can inter-operate with pDevice/pContext, do not bind.
|
||||
) = 0;
|
||||
|
||||
virtual bool unbindExternalDevice(
|
||||
intptr_t type, //!< Enum val. for ext.API type: GL, D3D10, etc.
|
||||
uint flags, //!< Enum val. for ext.API type: GL, D3D10, etc.
|
||||
void* pDevice, //!< D3D device do D3D, HDC/Display handle of X Window for GL
|
||||
void* pContext, //!< HGLRC/GLXContext handle
|
||||
bool validateOnly //! Only validate if the device can inter-operate with pDevice/pContext, do not bind.
|
||||
|
||||
Reference in New Issue
Block a user