Skip to content

Commit

Permalink
Minor fix for partial support of timeline semaphores (#3739)
Browse files Browse the repository at this point in the history
This is a minor fix adding the extension header file to
vulkan.api.
  • Loading branch information
zakerinasab authored Feb 4, 2020
1 parent e689e12 commit 9158c5e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
23 changes: 13 additions & 10 deletions gapis/api/vulkan/extensions/khr_timeline_semaphore.api
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ class VkSemaphoreSignalInfoKHR {
VkStructureType sType
const void* pNext
VkSemaphore semaphore
uint64_t value
u64 value
}

@extension("VK_KHR_timeline_semaphore")
class VkSemaphoreWaitInfoKHR {
VkStructureType sType
const void* pNext
VkSemaphoreWaitFlags flags
uint32_t semaphoreCount
u32 semaphoreCount
const VkSemaphore* pSemaphores
const uint64_t* pValues
const u64* pValues
}

//////////////
Expand All @@ -71,25 +71,28 @@ class VkSemaphoreWaitInfoKHR {
// Partial implementation
@extension("VK_KHR_timeline_semaphore")
@indirect("VkDevice")
cmd VkResult vkSignalSemaphore(
cmd VkResult vkSignalSemaphoreKHR(
VkDevice device,
const VkSemaphoreSignalInfo* pSignalInfo) {
const VkSemaphoreSignalInfoKHR* pSignalInfo) {
return VK_SUCCESS
}

// Partial implementation
@extension("VK_KHR_timeline_semaphore")
@indirect("VkDevice")
VkResult vkWaitSemaphores(
cmd VkResult vkWaitSemaphoresKHR(
VkDevice device,
const VkSemaphoreWaitInfo* pWaitInfo,
uint64_t timeout) {
const VkSemaphoreWaitInfoKHR* pWaitInfo,
u64 timeout) {
return VK_SUCCESS
}

// Partial implementation
@extension("VK_KHR_timeline_semaphore")
@indirect("VkDevice")
VkResult vkGetSemaphoreCounterValue(
cmd VkResult vkGetSemaphoreCounterValueKHR(
VkDevice device,
VkSemaphore semaphore,
uint64_t* pValue) {
u64* pValue) {
return VK_SUCCESS
}
1 change: 1 addition & 0 deletions gapis/api/vulkan/vulkan.api
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ import "extensions/khr_shader_float_controls.api"
import "extensions/khr_shader_float16_int8.api"
import "extensions/khr_shader_atomic_int64.api"
import "extensions/khr_driver_properties.api"
import "extensions/khr_timeline_semaphore.api"

import "android/vulkan_android.api"
import "linux/vulkan_linux.api"
Expand Down

0 comments on commit 9158c5e

Please sign in to comment.