Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 1 | #include <hardware/hwvulkan.h> |
| 2 | |
| 3 | #include <string.h> |
| 4 | #include <algorithm> |
| 5 | |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 6 | // #define LOG_NDEBUG 0 |
| 7 | #include <log/log.h> |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 8 | #include <utils/Errors.h> |
| 9 | |
| 10 | #include "null_driver.h" |
| 11 | |
| 12 | using namespace null_driver; |
| 13 | |
| 14 | struct VkPhysicalDevice_T { |
| 15 | hwvulkan_dispatch_t dispatch; |
| 16 | }; |
| 17 | |
| 18 | struct VkInstance_T { |
| 19 | hwvulkan_dispatch_t dispatch; |
| 20 | const VkAllocCallbacks* alloc; |
| 21 | VkPhysicalDevice_T physical_device; |
| 22 | }; |
| 23 | |
| 24 | struct VkQueue_T { |
| 25 | hwvulkan_dispatch_t dispatch; |
| 26 | }; |
| 27 | |
| 28 | struct VkCmdBuffer_T { |
| 29 | hwvulkan_dispatch_t dispatch; |
| 30 | }; |
| 31 | |
| 32 | struct VkDevice_T { |
| 33 | hwvulkan_dispatch_t dispatch; |
| 34 | VkInstance_T* instance; |
| 35 | VkQueue_T queue; |
| 36 | }; |
| 37 | |
| 38 | // ----------------------------------------------------------------------------- |
| 39 | // Declare HAL_MODULE_INFO_SYM early so it can be referenced by nulldrv_device |
| 40 | // later. |
| 41 | |
| 42 | namespace { |
| 43 | int OpenDevice(const hw_module_t* module, const char* id, hw_device_t** device); |
| 44 | hw_module_methods_t nulldrv_module_methods = {.open = OpenDevice}; |
| 45 | } // namespace |
| 46 | |
| 47 | #pragma clang diagnostic push |
| 48 | #pragma clang diagnostic ignored "-Wmissing-variable-declarations" |
| 49 | __attribute__((visibility("default"))) hwvulkan_module_t HAL_MODULE_INFO_SYM = { |
| 50 | .common = |
| 51 | { |
| 52 | .tag = HARDWARE_MODULE_TAG, |
| 53 | .module_api_version = HWVULKAN_MODULE_API_VERSION_0_1, |
| 54 | .hal_api_version = HARDWARE_HAL_API_VERSION, |
| 55 | .id = HWVULKAN_HARDWARE_MODULE_ID, |
| 56 | .name = "Null Vulkan Driver", |
| 57 | .author = "The Android Open Source Project", |
| 58 | .methods = &nulldrv_module_methods, |
| 59 | }, |
| 60 | }; |
| 61 | #pragma clang diagnostic pop |
| 62 | |
| 63 | // ----------------------------------------------------------------------------- |
| 64 | |
| 65 | namespace { |
| 66 | |
| 67 | VkResult CreateInstance(const VkInstanceCreateInfo* create_info, |
| 68 | VkInstance* out_instance) { |
| 69 | VkInstance_T* instance = |
| 70 | static_cast<VkInstance_T*>(create_info->pAllocCb->pfnAlloc( |
| 71 | create_info->pAllocCb->pUserData, sizeof(VkInstance_T), |
| 72 | alignof(VkInstance_T), VK_SYSTEM_ALLOC_TYPE_API_OBJECT)); |
| 73 | if (!instance) |
| 74 | return VK_ERROR_OUT_OF_HOST_MEMORY; |
| 75 | |
| 76 | instance->dispatch.magic = HWVULKAN_DISPATCH_MAGIC; |
| 77 | instance->alloc = create_info->pAllocCb; |
| 78 | instance->physical_device.dispatch.magic = HWVULKAN_DISPATCH_MAGIC; |
| 79 | |
| 80 | *out_instance = instance; |
| 81 | return VK_SUCCESS; |
| 82 | } |
| 83 | |
| 84 | int CloseDevice(struct hw_device_t* /*device*/) { |
| 85 | // nothing to do - opening a device doesn't allocate any resources |
| 86 | return 0; |
| 87 | } |
| 88 | |
| 89 | hwvulkan_device_t nulldrv_device = { |
| 90 | .common = |
| 91 | { |
| 92 | .tag = HARDWARE_DEVICE_TAG, |
| 93 | .version = HWVULKAN_DEVICE_API_VERSION_0_1, |
| 94 | .module = &HAL_MODULE_INFO_SYM.common, |
| 95 | .close = CloseDevice, |
| 96 | }, |
| 97 | .GetGlobalExtensionProperties = GetGlobalExtensionProperties, |
| 98 | .CreateInstance = CreateInstance, |
| 99 | .GetInstanceProcAddr = GetInstanceProcAddr}; |
| 100 | |
| 101 | int OpenDevice(const hw_module_t* /*module*/, |
| 102 | const char* id, |
| 103 | hw_device_t** device) { |
| 104 | if (strcmp(id, HWVULKAN_DEVICE_0) == 0) { |
| 105 | *device = &nulldrv_device.common; |
| 106 | return 0; |
| 107 | } |
| 108 | return -ENOENT; |
| 109 | } |
| 110 | |
| 111 | VkInstance_T* GetInstanceFromPhysicalDevice( |
| 112 | VkPhysicalDevice_T* physical_device) { |
| 113 | return reinterpret_cast<VkInstance_T*>( |
| 114 | reinterpret_cast<uintptr_t>(physical_device) - |
| 115 | offsetof(VkInstance_T, physical_device)); |
| 116 | } |
| 117 | |
| 118 | } // namespace |
| 119 | |
| 120 | namespace null_driver { |
| 121 | |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 122 | // ----------------------------------------------------------------------------- |
| 123 | // Global |
| 124 | |
| 125 | VkResult GetGlobalExtensionProperties(const char*, |
| 126 | uint32_t* count, |
| 127 | VkExtensionProperties*) { |
| 128 | *count = 0; |
| 129 | return VK_SUCCESS; |
| 130 | } |
| 131 | |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 132 | PFN_vkVoidFunction GetInstanceProcAddr(VkInstance, const char* name) { |
| 133 | PFN_vkVoidFunction proc = LookupInstanceProcAddr(name); |
| 134 | if (!proc && strcmp(name, "vkGetDeviceProcAddr") == 0) |
| 135 | proc = reinterpret_cast<PFN_vkVoidFunction>(GetDeviceProcAddr); |
| 136 | return proc; |
| 137 | } |
| 138 | |
| 139 | PFN_vkVoidFunction GetDeviceProcAddr(VkDevice, const char* name) { |
| 140 | return LookupDeviceProcAddr(name); |
| 141 | } |
| 142 | |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 143 | // ----------------------------------------------------------------------------- |
| 144 | // Instance |
| 145 | |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 146 | VkResult DestroyInstance(VkInstance instance) { |
| 147 | instance->alloc->pfnFree(instance->alloc->pUserData, instance); |
| 148 | return VK_SUCCESS; |
| 149 | } |
| 150 | |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 151 | // ----------------------------------------------------------------------------- |
| 152 | // PhysicalDevice |
| 153 | |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 154 | VkResult EnumeratePhysicalDevices(VkInstance instance, |
| 155 | uint32_t* physical_device_count, |
| 156 | VkPhysicalDevice* physical_devices) { |
| 157 | if (physical_devices && *physical_device_count >= 1) |
| 158 | physical_devices[0] = &instance->physical_device; |
| 159 | *physical_device_count = 1; |
| 160 | return VK_SUCCESS; |
| 161 | } |
| 162 | |
| 163 | VkResult GetPhysicalDeviceProperties(VkPhysicalDevice, |
| 164 | VkPhysicalDeviceProperties* properties) { |
| 165 | properties->apiVersion = VK_API_VERSION; |
| 166 | properties->driverVersion = VK_MAKE_VERSION(0, 0, 1); |
| 167 | properties->vendorId = 0xC0DE; |
| 168 | properties->deviceId = 0xCAFE; |
| 169 | properties->deviceType = VK_PHYSICAL_DEVICE_TYPE_OTHER; |
| 170 | strcpy(properties->deviceName, "Android Vulkan Null Driver"); |
| 171 | memset(properties->pipelineCacheUUID, 0, |
| 172 | sizeof(properties->pipelineCacheUUID)); |
| 173 | return VK_SUCCESS; |
| 174 | } |
| 175 | |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 176 | VkResult GetPhysicalDeviceMemoryProperties( |
| 177 | VkPhysicalDevice, |
| 178 | VkPhysicalDeviceMemoryProperties* properties) { |
| 179 | properties->memoryTypeCount = 1; |
| 180 | properties->memoryTypes[0].propertyFlags = |
| 181 | VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT; |
| 182 | properties->memoryTypes[0].heapIndex = 0; |
| 183 | properties->memoryHeapCount = 1; |
| 184 | properties->memoryHeaps[0].size = |
| 185 | INTPTR_MAX; // TODO: do something smarter? |
| 186 | properties->memoryHeaps[0].flags = VK_MEMORY_HEAP_HOST_LOCAL; |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 187 | return VK_SUCCESS; |
| 188 | } |
| 189 | |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 190 | // ----------------------------------------------------------------------------- |
| 191 | // Device |
| 192 | |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 193 | VkResult CreateDevice(VkPhysicalDevice physical_device, |
| 194 | const VkDeviceCreateInfo*, |
| 195 | VkDevice* out_device) { |
| 196 | VkInstance_T* instance = GetInstanceFromPhysicalDevice(physical_device); |
| 197 | VkDevice_T* device = static_cast<VkDevice_T*>(instance->alloc->pfnAlloc( |
| 198 | instance->alloc->pUserData, sizeof(VkDevice_T), alignof(VkDevice_T), |
| 199 | VK_SYSTEM_ALLOC_TYPE_API_OBJECT)); |
| 200 | if (!device) |
| 201 | return VK_ERROR_OUT_OF_HOST_MEMORY; |
| 202 | |
| 203 | device->dispatch.magic = HWVULKAN_DISPATCH_MAGIC; |
| 204 | device->instance = instance; |
| 205 | device->queue.dispatch.magic = HWVULKAN_DISPATCH_MAGIC; |
| 206 | |
| 207 | *out_device = device; |
| 208 | return VK_SUCCESS; |
| 209 | } |
| 210 | |
| 211 | VkResult DestroyDevice(VkDevice device) { |
| 212 | if (!device) |
| 213 | return VK_SUCCESS; |
| 214 | const VkAllocCallbacks* alloc = device->instance->alloc; |
| 215 | alloc->pfnFree(alloc->pUserData, device); |
| 216 | return VK_SUCCESS; |
| 217 | } |
| 218 | |
| 219 | VkResult GetDeviceQueue(VkDevice device, uint32_t, uint32_t, VkQueue* queue) { |
| 220 | *queue = &device->queue; |
| 221 | return VK_SUCCESS; |
| 222 | } |
| 223 | |
| 224 | // ----------------------------------------------------------------------------- |
| 225 | // No-op entrypoints |
| 226 | |
| 227 | // clang-format off |
| 228 | #pragma clang diagnostic push |
| 229 | #pragma clang diagnostic ignored "-Wunused-parameter" |
| 230 | |
| 231 | VkResult GetPhysicalDeviceQueueCount(VkPhysicalDevice physicalDevice, uint32_t* pCount) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 232 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 233 | return VK_SUCCESS; |
| 234 | } |
| 235 | |
| 236 | VkResult GetPhysicalDeviceQueueProperties(VkPhysicalDevice physicalDevice, uint32_t count, VkPhysicalDeviceQueueProperties* pQueueProperties) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 237 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 238 | return VK_SUCCESS; |
| 239 | } |
| 240 | |
| 241 | VkResult GetPhysicalDeviceFeatures(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures* pFeatures) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 242 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 243 | return VK_SUCCESS; |
| 244 | } |
| 245 | |
| 246 | VkResult GetPhysicalDeviceFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties* pFormatProperties) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 247 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 248 | return VK_SUCCESS; |
| 249 | } |
| 250 | |
| 251 | VkResult GetPhysicalDeviceImageFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageFormatProperties* pImageFormatProperties) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 252 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 253 | return VK_SUCCESS; |
| 254 | } |
| 255 | |
| 256 | VkResult GetPhysicalDeviceLimits(VkPhysicalDevice physicalDevice, VkPhysicalDeviceLimits* pLimits) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 257 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 258 | return VK_SUCCESS; |
| 259 | } |
| 260 | |
| 261 | VkResult GetGlobalLayerProperties(uint32_t* pCount, VkLayerProperties* pProperties) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 262 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 263 | return VK_SUCCESS; |
| 264 | } |
| 265 | |
| 266 | VkResult GetPhysicalDeviceLayerProperties(VkPhysicalDevice physicalDevice, uint32_t* pCount, VkLayerProperties* pProperties) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 267 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 268 | return VK_SUCCESS; |
| 269 | } |
| 270 | |
| 271 | VkResult GetPhysicalDeviceExtensionProperties(VkPhysicalDevice physicalDevice, const char* pLayerName, uint32_t* pCount, VkExtensionProperties* pProperties) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 272 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 273 | return VK_SUCCESS; |
| 274 | } |
| 275 | |
| 276 | VkResult QueueSubmit(VkQueue queue, uint32_t cmdBufferCount, const VkCmdBuffer* pCmdBuffers, VkFence fence) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 277 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 278 | return VK_SUCCESS; |
| 279 | } |
| 280 | |
| 281 | VkResult QueueWaitIdle(VkQueue queue) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 282 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 283 | return VK_SUCCESS; |
| 284 | } |
| 285 | |
| 286 | VkResult DeviceWaitIdle(VkDevice device) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 287 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 288 | return VK_SUCCESS; |
| 289 | } |
| 290 | |
| 291 | VkResult AllocMemory(VkDevice device, const VkMemoryAllocInfo* pAllocInfo, VkDeviceMemory* pMem) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 292 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 293 | return VK_SUCCESS; |
| 294 | } |
| 295 | |
| 296 | VkResult FreeMemory(VkDevice device, VkDeviceMemory mem) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 297 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 298 | return VK_SUCCESS; |
| 299 | } |
| 300 | |
| 301 | VkResult MapMemory(VkDevice device, VkDeviceMemory mem, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void** ppData) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 302 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 303 | return VK_SUCCESS; |
| 304 | } |
| 305 | |
| 306 | VkResult UnmapMemory(VkDevice device, VkDeviceMemory mem) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 307 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 308 | return VK_SUCCESS; |
| 309 | } |
| 310 | |
| 311 | VkResult FlushMappedMemoryRanges(VkDevice device, uint32_t memRangeCount, const VkMappedMemoryRange* pMemRanges) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 312 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 313 | return VK_SUCCESS; |
| 314 | } |
| 315 | |
| 316 | VkResult InvalidateMappedMemoryRanges(VkDevice device, uint32_t memRangeCount, const VkMappedMemoryRange* pMemRanges) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 317 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 318 | return VK_SUCCESS; |
| 319 | } |
| 320 | |
| 321 | VkResult GetDeviceMemoryCommitment(VkDevice device, VkDeviceMemory memory, VkDeviceSize* pCommittedMemoryInBytes) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 322 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 323 | return VK_SUCCESS; |
| 324 | } |
| 325 | |
| 326 | VkResult GetBufferMemoryRequirements(VkDevice device, VkBuffer buffer, VkMemoryRequirements* pMemoryRequirements) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 327 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 328 | return VK_SUCCESS; |
| 329 | } |
| 330 | |
| 331 | VkResult BindBufferMemory(VkDevice device, VkBuffer buffer, VkDeviceMemory mem, VkDeviceSize memOffset) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 332 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 333 | return VK_SUCCESS; |
| 334 | } |
| 335 | |
| 336 | VkResult GetImageMemoryRequirements(VkDevice device, VkImage image, VkMemoryRequirements* pMemoryRequirements) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 337 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 338 | return VK_SUCCESS; |
| 339 | } |
| 340 | |
| 341 | VkResult BindImageMemory(VkDevice device, VkImage image, VkDeviceMemory mem, VkDeviceSize memOffset) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 342 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 343 | return VK_SUCCESS; |
| 344 | } |
| 345 | |
| 346 | VkResult GetImageSparseMemoryRequirements(VkDevice device, VkImage image, uint32_t* pNumRequirements, VkSparseImageMemoryRequirements* pSparseMemoryRequirements) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 347 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 348 | return VK_SUCCESS; |
| 349 | } |
| 350 | |
| 351 | VkResult GetPhysicalDeviceSparseImageFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, uint32_t samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t* pNumProperties, VkSparseImageFormatProperties* pProperties) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 352 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 353 | return VK_SUCCESS; |
| 354 | } |
| 355 | |
| 356 | VkResult QueueBindSparseBufferMemory(VkQueue queue, VkBuffer buffer, uint32_t numBindings, const VkSparseMemoryBindInfo* pBindInfo) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 357 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 358 | return VK_SUCCESS; |
| 359 | } |
| 360 | |
| 361 | VkResult QueueBindSparseImageOpaqueMemory(VkQueue queue, VkImage image, uint32_t numBindings, const VkSparseMemoryBindInfo* pBindInfo) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 362 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 363 | return VK_SUCCESS; |
| 364 | } |
| 365 | |
| 366 | VkResult QueueBindSparseImageMemory(VkQueue queue, VkImage image, uint32_t numBindings, const VkSparseImageMemoryBindInfo* pBindInfo) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 367 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 368 | return VK_SUCCESS; |
| 369 | } |
| 370 | |
| 371 | VkResult CreateFence(VkDevice device, const VkFenceCreateInfo* pCreateInfo, VkFence* pFence) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 372 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 373 | return VK_SUCCESS; |
| 374 | } |
| 375 | |
| 376 | VkResult DestroyFence(VkDevice device, VkFence fence) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 377 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 378 | return VK_SUCCESS; |
| 379 | } |
| 380 | |
| 381 | VkResult ResetFences(VkDevice device, uint32_t fenceCount, const VkFence* pFences) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 382 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 383 | return VK_SUCCESS; |
| 384 | } |
| 385 | |
| 386 | VkResult GetFenceStatus(VkDevice device, VkFence fence) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 387 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 388 | return VK_SUCCESS; |
| 389 | } |
| 390 | |
| 391 | VkResult WaitForFences(VkDevice device, uint32_t fenceCount, const VkFence* pFences, VkBool32 waitAll, uint64_t timeout) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 392 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 393 | return VK_SUCCESS; |
| 394 | } |
| 395 | |
| 396 | VkResult CreateSemaphore(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, VkSemaphore* pSemaphore) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 397 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 398 | return VK_SUCCESS; |
| 399 | } |
| 400 | |
| 401 | VkResult DestroySemaphore(VkDevice device, VkSemaphore semaphore) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 402 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 403 | return VK_SUCCESS; |
| 404 | } |
| 405 | |
| 406 | VkResult QueueSignalSemaphore(VkQueue queue, VkSemaphore semaphore) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 407 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 408 | return VK_SUCCESS; |
| 409 | } |
| 410 | |
| 411 | VkResult QueueWaitSemaphore(VkQueue queue, VkSemaphore semaphore) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 412 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 413 | return VK_SUCCESS; |
| 414 | } |
| 415 | |
| 416 | VkResult CreateEvent(VkDevice device, const VkEventCreateInfo* pCreateInfo, VkEvent* pEvent) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 417 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 418 | return VK_SUCCESS; |
| 419 | } |
| 420 | |
| 421 | VkResult DestroyEvent(VkDevice device, VkEvent event) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 422 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 423 | return VK_SUCCESS; |
| 424 | } |
| 425 | |
| 426 | VkResult GetEventStatus(VkDevice device, VkEvent event) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 427 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 428 | return VK_SUCCESS; |
| 429 | } |
| 430 | |
| 431 | VkResult SetEvent(VkDevice device, VkEvent event) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 432 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 433 | return VK_SUCCESS; |
| 434 | } |
| 435 | |
| 436 | VkResult ResetEvent(VkDevice device, VkEvent event) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 437 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 438 | return VK_SUCCESS; |
| 439 | } |
| 440 | |
| 441 | VkResult CreateQueryPool(VkDevice device, const VkQueryPoolCreateInfo* pCreateInfo, VkQueryPool* pQueryPool) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 442 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 443 | return VK_SUCCESS; |
| 444 | } |
| 445 | |
| 446 | VkResult DestroyQueryPool(VkDevice device, VkQueryPool queryPool) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 447 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 448 | return VK_SUCCESS; |
| 449 | } |
| 450 | |
| 451 | VkResult GetQueryPoolResults(VkDevice device, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount, size_t* pDataSize, void* pData, VkQueryResultFlags flags) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 452 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 453 | return VK_SUCCESS; |
| 454 | } |
| 455 | |
| 456 | VkResult CreateBuffer(VkDevice device, const VkBufferCreateInfo* pCreateInfo, VkBuffer* pBuffer) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 457 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 458 | return VK_SUCCESS; |
| 459 | } |
| 460 | |
| 461 | VkResult DestroyBuffer(VkDevice device, VkBuffer buffer) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 462 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 463 | return VK_SUCCESS; |
| 464 | } |
| 465 | |
| 466 | VkResult CreateBufferView(VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, VkBufferView* pView) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 467 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 468 | return VK_SUCCESS; |
| 469 | } |
| 470 | |
| 471 | VkResult DestroyBufferView(VkDevice device, VkBufferView bufferView) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 472 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 473 | return VK_SUCCESS; |
| 474 | } |
| 475 | |
| 476 | VkResult CreateImage(VkDevice device, const VkImageCreateInfo* pCreateInfo, VkImage* pImage) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 477 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 478 | return VK_SUCCESS; |
| 479 | } |
| 480 | |
| 481 | VkResult DestroyImage(VkDevice device, VkImage image) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 482 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 483 | return VK_SUCCESS; |
| 484 | } |
| 485 | |
| 486 | VkResult GetImageSubresourceLayout(VkDevice device, VkImage image, const VkImageSubresource* pSubresource, VkSubresourceLayout* pLayout) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 487 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 488 | return VK_SUCCESS; |
| 489 | } |
| 490 | |
| 491 | VkResult CreateImageView(VkDevice device, const VkImageViewCreateInfo* pCreateInfo, VkImageView* pView) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 492 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 493 | return VK_SUCCESS; |
| 494 | } |
| 495 | |
| 496 | VkResult DestroyImageView(VkDevice device, VkImageView imageView) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 497 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 498 | return VK_SUCCESS; |
| 499 | } |
| 500 | |
| 501 | VkResult CreateAttachmentView(VkDevice device, const VkAttachmentViewCreateInfo* pCreateInfo, VkAttachmentView* pView) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 502 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 503 | return VK_SUCCESS; |
| 504 | } |
| 505 | |
| 506 | VkResult DestroyAttachmentView(VkDevice device, VkAttachmentView attachmentView) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 507 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 508 | return VK_SUCCESS; |
| 509 | } |
| 510 | |
| 511 | VkResult CreateShaderModule(VkDevice device, const VkShaderModuleCreateInfo* pCreateInfo, VkShaderModule* pShaderModule) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 512 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 513 | return VK_SUCCESS; |
| 514 | } |
| 515 | |
| 516 | VkResult DestroyShaderModule(VkDevice device, VkShaderModule shaderModule) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 517 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 518 | return VK_SUCCESS; |
| 519 | } |
| 520 | |
| 521 | VkResult CreateShader(VkDevice device, const VkShaderCreateInfo* pCreateInfo, VkShader* pShader) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 522 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 523 | return VK_SUCCESS; |
| 524 | } |
| 525 | |
| 526 | VkResult DestroyShader(VkDevice device, VkShader shader) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 527 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 528 | return VK_SUCCESS; |
| 529 | } |
| 530 | |
| 531 | VkResult CreatePipelineCache(VkDevice device, const VkPipelineCacheCreateInfo* pCreateInfo, VkPipelineCache* pPipelineCache) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 532 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 533 | return VK_SUCCESS; |
| 534 | } |
| 535 | |
| 536 | VkResult DestroyPipelineCache(VkDevice device, VkPipelineCache pipelineCache) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 537 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 538 | return VK_SUCCESS; |
| 539 | } |
| 540 | |
| 541 | size_t GetPipelineCacheSize(VkDevice device, VkPipelineCache pipelineCache) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 542 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 543 | return VK_SUCCESS; |
| 544 | } |
| 545 | |
| 546 | VkResult GetPipelineCacheData(VkDevice device, VkPipelineCache pipelineCache, void* pData) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 547 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 548 | return VK_SUCCESS; |
| 549 | } |
| 550 | |
| 551 | VkResult MergePipelineCaches(VkDevice device, VkPipelineCache destCache, uint32_t srcCacheCount, const VkPipelineCache* pSrcCaches) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 552 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 553 | return VK_SUCCESS; |
| 554 | } |
| 555 | |
| 556 | VkResult CreateGraphicsPipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t count, const VkGraphicsPipelineCreateInfo* pCreateInfos, VkPipeline* pPipelines) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 557 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 558 | return VK_SUCCESS; |
| 559 | } |
| 560 | |
| 561 | VkResult CreateComputePipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t count, const VkComputePipelineCreateInfo* pCreateInfos, VkPipeline* pPipelines) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 562 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 563 | return VK_SUCCESS; |
| 564 | } |
| 565 | |
| 566 | VkResult DestroyPipeline(VkDevice device, VkPipeline pipeline) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 567 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 568 | return VK_SUCCESS; |
| 569 | } |
| 570 | |
| 571 | VkResult CreatePipelineLayout(VkDevice device, const VkPipelineLayoutCreateInfo* pCreateInfo, VkPipelineLayout* pPipelineLayout) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 572 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 573 | return VK_SUCCESS; |
| 574 | } |
| 575 | |
| 576 | VkResult DestroyPipelineLayout(VkDevice device, VkPipelineLayout pipelineLayout) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 577 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 578 | return VK_SUCCESS; |
| 579 | } |
| 580 | |
| 581 | VkResult CreateSampler(VkDevice device, const VkSamplerCreateInfo* pCreateInfo, VkSampler* pSampler) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 582 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 583 | return VK_SUCCESS; |
| 584 | } |
| 585 | |
| 586 | VkResult DestroySampler(VkDevice device, VkSampler sampler) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 587 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 588 | return VK_SUCCESS; |
| 589 | } |
| 590 | |
| 591 | VkResult CreateDescriptorSetLayout(VkDevice device, const VkDescriptorSetLayoutCreateInfo* pCreateInfo, VkDescriptorSetLayout* pSetLayout) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 592 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 593 | return VK_SUCCESS; |
| 594 | } |
| 595 | |
| 596 | VkResult DestroyDescriptorSetLayout(VkDevice device, VkDescriptorSetLayout descriptorSetLayout) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 597 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 598 | return VK_SUCCESS; |
| 599 | } |
| 600 | |
| 601 | VkResult CreateDescriptorPool(VkDevice device, VkDescriptorPoolUsage poolUsage, uint32_t maxSets, const VkDescriptorPoolCreateInfo* pCreateInfo, VkDescriptorPool* pDescriptorPool) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 602 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 603 | return VK_SUCCESS; |
| 604 | } |
| 605 | |
| 606 | VkResult DestroyDescriptorPool(VkDevice device, VkDescriptorPool descriptorPool) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 607 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 608 | return VK_SUCCESS; |
| 609 | } |
| 610 | |
| 611 | VkResult ResetDescriptorPool(VkDevice device, VkDescriptorPool descriptorPool) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 612 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 613 | return VK_SUCCESS; |
| 614 | } |
| 615 | |
| 616 | VkResult AllocDescriptorSets(VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorSetUsage setUsage, uint32_t count, const VkDescriptorSetLayout* pSetLayouts, VkDescriptorSet* pDescriptorSets, uint32_t* pCount) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 617 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 618 | return VK_SUCCESS; |
| 619 | } |
| 620 | |
| 621 | VkResult UpdateDescriptorSets(VkDevice device, uint32_t writeCount, const VkWriteDescriptorSet* pDescriptorWrites, uint32_t copyCount, const VkCopyDescriptorSet* pDescriptorCopies) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 622 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 623 | return VK_SUCCESS; |
| 624 | } |
| 625 | |
| 626 | VkResult FreeDescriptorSets(VkDevice device, VkDescriptorPool descriptorPool, uint32_t count, const VkDescriptorSet* pDescriptorSets) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 627 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 628 | return VK_SUCCESS; |
| 629 | } |
| 630 | |
| 631 | VkResult CreateDynamicViewportState(VkDevice device, const VkDynamicViewportStateCreateInfo* pCreateInfo, VkDynamicViewportState* pState) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 632 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 633 | return VK_SUCCESS; |
| 634 | } |
| 635 | |
| 636 | VkResult DestroyDynamicViewportState(VkDevice device, VkDynamicViewportState dynamicViewportState) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 637 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 638 | return VK_SUCCESS; |
| 639 | } |
| 640 | |
| 641 | VkResult CreateDynamicRasterState(VkDevice device, const VkDynamicRasterStateCreateInfo* pCreateInfo, VkDynamicRasterState* pState) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 642 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 643 | return VK_SUCCESS; |
| 644 | } |
| 645 | |
| 646 | VkResult DestroyDynamicRasterState(VkDevice device, VkDynamicRasterState dynamicRasterState) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 647 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 648 | return VK_SUCCESS; |
| 649 | } |
| 650 | |
| 651 | VkResult CreateDynamicColorBlendState(VkDevice device, const VkDynamicColorBlendStateCreateInfo* pCreateInfo, VkDynamicColorBlendState* pState) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 652 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 653 | return VK_SUCCESS; |
| 654 | } |
| 655 | |
| 656 | VkResult DestroyDynamicColorBlendState(VkDevice device, VkDynamicColorBlendState dynamicColorBlendState) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 657 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 658 | return VK_SUCCESS; |
| 659 | } |
| 660 | |
| 661 | VkResult CreateDynamicDepthStencilState(VkDevice device, const VkDynamicDepthStencilStateCreateInfo* pCreateInfo, VkDynamicDepthStencilState* pState) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 662 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 663 | return VK_SUCCESS; |
| 664 | } |
| 665 | |
| 666 | VkResult DestroyDynamicDepthStencilState(VkDevice device, VkDynamicDepthStencilState dynamicDepthStencilState) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 667 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 668 | return VK_SUCCESS; |
| 669 | } |
| 670 | |
| 671 | VkResult CreateFramebuffer(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, VkFramebuffer* pFramebuffer) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 672 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 673 | return VK_SUCCESS; |
| 674 | } |
| 675 | |
| 676 | VkResult DestroyFramebuffer(VkDevice device, VkFramebuffer framebuffer) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 677 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 678 | return VK_SUCCESS; |
| 679 | } |
| 680 | |
| 681 | VkResult CreateRenderPass(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, VkRenderPass* pRenderPass) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 682 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 683 | return VK_SUCCESS; |
| 684 | } |
| 685 | |
| 686 | VkResult DestroyRenderPass(VkDevice device, VkRenderPass renderPass) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 687 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 688 | return VK_SUCCESS; |
| 689 | } |
| 690 | |
| 691 | VkResult GetRenderAreaGranularity(VkDevice device, VkRenderPass renderPass, VkExtent2D* pGranularity) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 692 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 693 | return VK_SUCCESS; |
| 694 | } |
| 695 | |
| 696 | VkResult CreateCommandPool(VkDevice device, const VkCmdPoolCreateInfo* pCreateInfo, VkCmdPool* pCmdPool) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 697 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 698 | return VK_SUCCESS; |
| 699 | } |
| 700 | |
| 701 | VkResult DestroyCommandPool(VkDevice device, VkCmdPool cmdPool) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 702 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 703 | return VK_SUCCESS; |
| 704 | } |
| 705 | |
| 706 | VkResult ResetCommandPool(VkDevice device, VkCmdPool cmdPool, VkCmdPoolResetFlags flags) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 707 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 708 | return VK_SUCCESS; |
| 709 | } |
| 710 | |
| 711 | VkResult CreateCommandBuffer(VkDevice device, const VkCmdBufferCreateInfo* pCreateInfo, VkCmdBuffer* pCmdBuffer) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 712 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 713 | return VK_SUCCESS; |
| 714 | } |
| 715 | |
| 716 | VkResult DestroyCommandBuffer(VkDevice device, VkCmdBuffer commandBuffer) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 717 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 718 | return VK_SUCCESS; |
| 719 | } |
| 720 | |
| 721 | VkResult BeginCommandBuffer(VkCmdBuffer cmdBuffer, const VkCmdBufferBeginInfo* pBeginInfo) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 722 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 723 | return VK_SUCCESS; |
| 724 | } |
| 725 | |
| 726 | VkResult EndCommandBuffer(VkCmdBuffer cmdBuffer) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 727 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 728 | return VK_SUCCESS; |
| 729 | } |
| 730 | |
| 731 | VkResult ResetCommandBuffer(VkCmdBuffer cmdBuffer, VkCmdBufferResetFlags flags) { |
Jesse Hall | 73ab0ac | 2015-08-25 15:09:15 +0100 | [diff] [blame^] | 732 | ALOGV("TODO: vk%s", __FUNCTION__); |
Jesse Hall | 04f4f47 | 2015-08-16 19:51:04 -0700 | [diff] [blame] | 733 | return VK_SUCCESS; |
| 734 | } |
| 735 | |
| 736 | void CmdBindPipeline(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline) { |
| 737 | } |
| 738 | |
| 739 | void CmdBindDynamicViewportState(VkCmdBuffer cmdBuffer, VkDynamicViewportState dynamicViewportState) { |
| 740 | } |
| 741 | |
| 742 | void CmdBindDynamicRasterState(VkCmdBuffer cmdBuffer, VkDynamicRasterState dynamicRasterState) { |
| 743 | } |
| 744 | |
| 745 | void CmdBindDynamicColorBlendState(VkCmdBuffer cmdBuffer, VkDynamicColorBlendState dynamicColorBlendState) { |
| 746 | } |
| 747 | |
| 748 | void CmdBindDynamicDepthStencilState(VkCmdBuffer cmdBuffer, VkDynamicDepthStencilState dynamicDepthStencilState) { |
| 749 | } |
| 750 | |
| 751 | void CmdBindDescriptorSets(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t firstSet, uint32_t setCount, const VkDescriptorSet* pDescriptorSets, uint32_t dynamicOffsetCount, const uint32_t* pDynamicOffsets) { |
| 752 | } |
| 753 | |
| 754 | void CmdBindIndexBuffer(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType) { |
| 755 | } |
| 756 | |
| 757 | void CmdBindVertexBuffers(VkCmdBuffer cmdBuffer, uint32_t startBinding, uint32_t bindingCount, const VkBuffer* pBuffers, const VkDeviceSize* pOffsets) { |
| 758 | } |
| 759 | |
| 760 | void CmdDraw(VkCmdBuffer cmdBuffer, uint32_t firstVertex, uint32_t vertexCount, uint32_t firstInstance, uint32_t instanceCount) { |
| 761 | } |
| 762 | |
| 763 | void CmdDrawIndexed(VkCmdBuffer cmdBuffer, uint32_t firstIndex, uint32_t indexCount, int32_t vertexOffset, uint32_t firstInstance, uint32_t instanceCount) { |
| 764 | } |
| 765 | |
| 766 | void CmdDrawIndirect(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t count, uint32_t stride) { |
| 767 | } |
| 768 | |
| 769 | void CmdDrawIndexedIndirect(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t count, uint32_t stride) { |
| 770 | } |
| 771 | |
| 772 | void CmdDispatch(VkCmdBuffer cmdBuffer, uint32_t x, uint32_t y, uint32_t z) { |
| 773 | } |
| 774 | |
| 775 | void CmdDispatchIndirect(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset) { |
| 776 | } |
| 777 | |
| 778 | void CmdCopyBuffer(VkCmdBuffer cmdBuffer, VkBuffer srcBuffer, VkBuffer destBuffer, uint32_t regionCount, const VkBufferCopy* pRegions) { |
| 779 | } |
| 780 | |
| 781 | void CmdCopyImage(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkImageCopy* pRegions) { |
| 782 | } |
| 783 | |
| 784 | void CmdBlitImage(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkImageBlit* pRegions, VkTexFilter filter) { |
| 785 | } |
| 786 | |
| 787 | void CmdCopyBufferToImage(VkCmdBuffer cmdBuffer, VkBuffer srcBuffer, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkBufferImageCopy* pRegions) { |
| 788 | } |
| 789 | |
| 790 | void CmdCopyImageToBuffer(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer destBuffer, uint32_t regionCount, const VkBufferImageCopy* pRegions) { |
| 791 | } |
| 792 | |
| 793 | void CmdUpdateBuffer(VkCmdBuffer cmdBuffer, VkBuffer destBuffer, VkDeviceSize destOffset, VkDeviceSize dataSize, const uint32_t* pData) { |
| 794 | } |
| 795 | |
| 796 | void CmdFillBuffer(VkCmdBuffer cmdBuffer, VkBuffer destBuffer, VkDeviceSize destOffset, VkDeviceSize fillSize, uint32_t data) { |
| 797 | } |
| 798 | |
| 799 | void CmdClearColorImage(VkCmdBuffer cmdBuffer, VkImage image, VkImageLayout imageLayout, const VkClearColorValue* pColor, uint32_t rangeCount, const VkImageSubresourceRange* pRanges) { |
| 800 | } |
| 801 | |
| 802 | void CmdClearDepthStencilImage(VkCmdBuffer cmdBuffer, VkImage image, VkImageLayout imageLayout, float depth, uint32_t stencil, uint32_t rangeCount, const VkImageSubresourceRange* pRanges) { |
| 803 | } |
| 804 | |
| 805 | void CmdClearColorAttachment(VkCmdBuffer cmdBuffer, uint32_t colorAttachment, VkImageLayout imageLayout, const VkClearColorValue* pColor, uint32_t rectCount, const VkRect3D* pRects) { |
| 806 | } |
| 807 | |
| 808 | void CmdClearDepthStencilAttachment(VkCmdBuffer cmdBuffer, VkImageAspectFlags imageAspectMask, VkImageLayout imageLayout, float depth, uint32_t stencil, uint32_t rectCount, const VkRect3D* pRects) { |
| 809 | } |
| 810 | |
| 811 | void CmdResolveImage(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkImageResolve* pRegions) { |
| 812 | } |
| 813 | |
| 814 | void CmdSetEvent(VkCmdBuffer cmdBuffer, VkEvent event, VkPipelineStageFlags stageMask) { |
| 815 | } |
| 816 | |
| 817 | void CmdResetEvent(VkCmdBuffer cmdBuffer, VkEvent event, VkPipelineStageFlags stageMask) { |
| 818 | } |
| 819 | |
| 820 | void CmdWaitEvents(VkCmdBuffer cmdBuffer, uint32_t eventCount, const VkEvent* pEvents, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags destStageMask, uint32_t memBarrierCount, const void* const* ppMemBarriers) { |
| 821 | } |
| 822 | |
| 823 | void CmdPipelineBarrier(VkCmdBuffer cmdBuffer, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags destStageMask, VkBool32 byRegion, uint32_t memBarrierCount, const void* const* ppMemBarriers) { |
| 824 | } |
| 825 | |
| 826 | void CmdBeginQuery(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t slot, VkQueryControlFlags flags) { |
| 827 | } |
| 828 | |
| 829 | void CmdEndQuery(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t slot) { |
| 830 | } |
| 831 | |
| 832 | void CmdResetQueryPool(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount) { |
| 833 | } |
| 834 | |
| 835 | void CmdWriteTimestamp(VkCmdBuffer cmdBuffer, VkTimestampType timestampType, VkBuffer destBuffer, VkDeviceSize destOffset) { |
| 836 | } |
| 837 | |
| 838 | void CmdCopyQueryPoolResults(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount, VkBuffer destBuffer, VkDeviceSize destOffset, VkDeviceSize destStride, VkQueryResultFlags flags) { |
| 839 | } |
| 840 | |
| 841 | void CmdPushConstants(VkCmdBuffer cmdBuffer, VkPipelineLayout layout, VkShaderStageFlags stageFlags, uint32_t start, uint32_t length, const void* values) { |
| 842 | } |
| 843 | |
| 844 | void CmdBeginRenderPass(VkCmdBuffer cmdBuffer, const VkRenderPassBeginInfo* pRenderPassBegin, VkRenderPassContents contents) { |
| 845 | } |
| 846 | |
| 847 | void CmdNextSubpass(VkCmdBuffer cmdBuffer, VkRenderPassContents contents) { |
| 848 | } |
| 849 | |
| 850 | void CmdEndRenderPass(VkCmdBuffer cmdBuffer) { |
| 851 | } |
| 852 | |
| 853 | void CmdExecuteCommands(VkCmdBuffer cmdBuffer, uint32_t cmdBuffersCount, const VkCmdBuffer* pCmdBuffers) { |
| 854 | } |
| 855 | |
| 856 | #pragma clang diagnostic pop |
| 857 | // clang-format on |
| 858 | |
| 859 | } // namespace null_driver |