P4 to Git Change 1338072 by wchau@wchau_WIN_OCL_HSA on 2016/11/08 10:02:39

SWDEV-95007 - OpenCL on PAL - DVR

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#14 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevicegl.cpp#3 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.hpp#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#37 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.hpp#16 edit
This commit is contained in:
foreman
2016-11-08 10:11:21 -05:00
parent 79459fbd6d
commit 94bf561bd7
6 changed files with 94 additions and 15 deletions
+15 -1
View File
@@ -185,7 +185,11 @@ Device::resGLAssociate(
uint type,
void** handle,
void** mbResHandle,
size_t* offset) const
size_t* offset
#ifdef ATI_OS_WIN
, Pal::DoppDesktopInfo& doppDesktopInfo
#endif
) const
{
amd::ScopedLock lk(lockPAL());
@@ -218,6 +222,16 @@ Device::resGLAssociate(
*handle = reinterpret_cast<void*>(hData.handle);
*mbResHandle = reinterpret_cast<void*>(hData.mbResHandle);
*offset = static_cast<size_t>(hData.offset);
#ifdef ATI_OS_WIN
if (hData.isDoppDesktopTexture) {
doppDesktopInfo.gpuVirtAddr = hData.cardAddr;
doppDesktopInfo.vidPnSourceId = hData.vidpnSourceId;
}
else {
doppDesktopInfo.gpuVirtAddr = 0;
doppDesktopInfo.vidPnSourceId = 0;
}
#endif
return status;
}