P4 to Git Change 1316123 by gandryey@gera-w8 on 2016/09/19 18:22:55
SWDEV-102286 - [CQE OCL][OpenCL on PAL] 32/64 "DX9" OpenCL SDK Sample is crashing
- Correct DX9 device binding
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#22 edit
[ROCm/clr commit: b65af32fe1]
Этот коммит содержится в:
@@ -1585,7 +1585,6 @@ Device::createView(amd::Memory& owner, const device::Memory& parent) const
|
||||
return gpuImage;
|
||||
}
|
||||
|
||||
|
||||
//! Attempt to bind with external graphics API's device/context
|
||||
bool
|
||||
Device::bindExternalDevice(uint flags, void* const pDevice[], void* pContext, bool validateOnly)
|
||||
@@ -1607,13 +1606,19 @@ Device::bindExternalDevice(uint flags, void* const pDevice[], void* pContext, bo
|
||||
}
|
||||
}
|
||||
|
||||
if (flags & (amd::Context::Flags::D3D9DeviceKhr |
|
||||
amd::Context::Flags::D3D9DeviceEXKhr)) {
|
||||
if (flags & amd::Context::Flags::D3D9DeviceKhr) {
|
||||
if (!associateD3D9Device(pDevice[amd::Context::DeviceFlagIdx::D3D9DeviceKhrIdx])) {
|
||||
LogWarning("D3D9<->OpenCL adapter mismatch or D3D9Associate() failure");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (flags & amd::Context::Flags::D3D9DeviceEXKhr) {
|
||||
if (!associateD3D9Device(pDevice[amd::Context::DeviceFlagIdx::D3D9DeviceEXKhrIdx])) {
|
||||
LogWarning("D3D9<->OpenCL adapter mismatch or D3D9Associate() failure");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif //_WIN32
|
||||
|
||||
if (flags & amd::Context::Flags::GLDeviceKhr) {
|
||||
|
||||
Ссылка в новой задаче
Block a user