SWDEV-245532 - HIP - Vulkan interop

Change-Id: I0e5bc4862925f344b3fcadf1fa0c0acaeaae6c4d
This commit is contained in:
pghafari
2021-03-19 18:27:10 -04:00
committed by Payam Ghafari
parent 1b9de9bee0
commit 6e888b15ff
4 changed files with 36 additions and 7 deletions
+5
View File
@@ -753,6 +753,10 @@ bool Resource::CreateInterop(CreateParams* params) {
desc_.isDoppTexture_ = (openInfo.doppDesktopInfo.gpuVirtAddr != 0);
format = dev().getPalFormat(desc().format_, &channels);
}
else if (memoryType() == VkInterop) {
VkInteropParams* vparams = reinterpret_cast<VkInteropParams*>(params);
openInfo.hExternalResource = vparams->handle_;
}
#ifdef ATI_OS_WIN
else {
D3DInteropParams* d3dRes = reinterpret_cast<D3DInteropParams*>(params);
@@ -1174,6 +1178,7 @@ bool Resource::create(MemoryType memType, CreateParams* params, bool forceLinear
case D3D9Interop:
case D3D10Interop:
case D3D11Interop:
case VkInterop:
return CreateInterop(params);
case P2PAccess:
return CreateP2PAccess(params);