diff options
| author | DrChat <arkolbed@gmail.com> | 2018-02-18 20:54:29 -0600 |
|---|---|---|
| committer | DrChat <arkolbed@gmail.com> | 2018-02-18 20:54:29 -0600 |
| commit | 4c766dcc61a7cb0c488c18c54f8e90cc7eb6dea7 (patch) | |
| tree | 4b7d0e0ceef4ddaf9e34d0eed46c208088525561 | |
| parent | f3f1a7fe42f8cd22655ebff3c64b342f8974dfd3 (diff) | |
[Vulkan] BufferCache: Fix a few problems
| -rw-r--r-- | src/xenia/gpu/vulkan/buffer_cache.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/xenia/gpu/vulkan/buffer_cache.cc b/src/xenia/gpu/vulkan/buffer_cache.cc index 5c2fed5e4..eaeec3098 100644 --- a/src/xenia/gpu/vulkan/buffer_cache.cc +++ b/src/xenia/gpu/vulkan/buffer_cache.cc @@ -162,8 +162,11 @@ VkResult xe::gpu::vulkan::BufferCache::CreateVertexDescriptorPool() { 1, &binding, }; - vkCreateDescriptorSetLayout(*device_, &layout_info, nullptr, - &vertex_descriptor_set_layout_); + status = vkCreateDescriptorSetLayout(*device_, &layout_info, nullptr, + &vertex_descriptor_set_layout_); + if (status != VK_SUCCESS) { + return status; + } return VK_SUCCESS; } @@ -582,7 +585,7 @@ VkDescriptorSet BufferCache::PrepareVertexSet( if (fetch->type != 0x3) { // TODO(DrChat): Some games use type 0x0 (with no data). - return false; + return nullptr; } // TODO(benvanik): compute based on indices or vertex count. @@ -598,7 +601,7 @@ VkDescriptorSet BufferCache::PrepareVertexSet( static_cast<Endian>(fetch->endian), fence); if (buffer_ref.second == VK_WHOLE_SIZE) { // Failed to upload buffer. - return false; + return nullptr; } // Stash the buffer reference for our bulk bind at the end. |
