Skip to content

Commit

Permalink
icd: Add vkGetMemoryFdKHR support
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-lunarg committed Oct 27, 2023
1 parent f2a8aff commit a3b8f71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion icd/generated/function_definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -3201,7 +3201,7 @@ static VKAPI_ATTR VkResult VKAPI_CALL GetMemoryFdKHR(
const VkMemoryGetFdInfoKHR* pGetFdInfo,
int* pFd)
{
//Not a CREATE or DESTROY function
*pFd = 1;
return VK_SUCCESS;
}

Expand Down
4 changes: 4 additions & 0 deletions scripts/mock_icd_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,10 @@
pGranularity->width = 1;
pGranularity->height = 1;
''',
'vkGetMemoryFdKHR': '''
*pFd = 1;
return VK_SUCCESS;
''',
'vkGetAndroidHardwareBufferPropertiesANDROID': '''
pProperties->allocationSize = 65536;
pProperties->memoryTypeBits = 1 << 5; // DEVICE_LOCAL only type
Expand Down

0 comments on commit a3b8f71

Please sign in to comment.