gfxstream: host: introduce vkGetSemaphoreGOOGLE

New protocol which instructs the host to share sync descriptor
with ExternalObjectManager.

Reviewed-by: Aaron Ruby <aruby@blackberry.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
This commit is contained in:
Gurchetan Singh 2024-07-02 13:55:35 -07:00 committed by Marge Bot
parent 7787569b96
commit 5524afa1df
4 changed files with 11 additions and 1 deletions

View file

@ -77,6 +77,7 @@ class ApiLogDecoder(VulkanWrapperGenerator):
"vkGetPhysicalDeviceFormatProperties",
"vkGetPhysicalDeviceProperties2KHR",
"vkGetPipelineCacheData",
"vkGetSemaphoreGOOGLE",
"vkGetSwapchainGrallocUsageANDROID",
"vkQueueCommitDescriptorSetUpdatesGOOGLE",
"vkQueueFlushCommandsGOOGLE",

View file

@ -742,6 +742,7 @@ custom_decodes = {
"vkMapMemoryIntoAddressSpaceGOOGLE" : emit_global_state_wrapped_decoding,
"vkGetMemoryHostAddressInfoGOOGLE" : emit_global_state_wrapped_decoding,
"vkGetBlobGOOGLE" : emit_global_state_wrapped_decoding,
"vkGetSemaphoreGOOGLE" : emit_global_state_wrapped_decoding,
# Descriptor update templates
"vkCreateDescriptorUpdateTemplate" : emit_global_state_wrapped_decoding,

View file

@ -348,6 +348,7 @@ KNOWN_FUNCTION_OPCODES = {
"vkGetLinearImageLayoutGOOGLE": 20333,
"vkQueueFlushCommandsGOOGLE": 20340,
"vkGetBlobGOOGLE": 20341,
"vkGetSemaphoreGOOGLE": 20342,
}
CUSTOM_MARSHAL_TYPES = {

View file

@ -246,6 +246,12 @@ specific entries.
<param><type>VkDeviceSize</type> <name>dataOffset</name></param>
<param><type>VkDeviceSize</type> <name>dataSize</name></param>
</command>
<command successcodes="VK_SUCCESS" errorcodes="VK_ERROR_OUT_OF_HOST_MEMORY">
<proto><type>VkResult</type> <name>vkGetSemaphoreGOOGLE</name></proto>
<param><type>VkDevice</type> <name>device</name></param>
<param><type>VkSemaphore</type> <name>semaphore</name></param>
<param><type>uint64_t</type> <name>syncId</name></param>
</command>
</commands>
<extensions comment="Vulkan extension interface definitions">
<extension name="VK_ANDROID_native_buffer" supported="vulkan"/>
@ -284,7 +290,8 @@ specific entries.
<command name="vkGetBlobGOOGLE"/>
<command name="vkUpdateDescriptorSetWithTemplateSized2GOOGLE"/>
<command name="vkQueueSubmitAsync2GOOGLE"/>
<command name="vkGetSemaphoreGOOGLE"/>
</require>
</extension>
</extensions>
</registry>
</registry>