Vulkan: Fix more validation issues.

This commit is contained in:
Hans-Kristian Arntzen 2016-06-25 14:01:10 +02:00
parent 07880e3f45
commit de36f572d1
2 changed files with 3 additions and 1 deletions

View File

@ -1953,6 +1953,8 @@ bool vulkan_create_swapchain(gfx_ctx_vulkan_data_t *vk,
VkPresentModeKHR swapchain_present_mode = VK_PRESENT_MODE_FIFO_KHR;
settings_t *settings = config_get_ptr();
VKFUNC(vkDeviceWaitIdle)(vk->context.device);
present_mode_count = 0;
VKFUNC(vkGetPhysicalDeviceSurfacePresentModesKHR)(
vk->context.gpu, vk->vk_surface,

View File

@ -1643,7 +1643,7 @@ void Pass::build_commands(
if (reflection.ubo_stage_mask)
{
set_uniform_buffer(sets[sync_index], 0,
set_uniform_buffer(sets[sync_index], reflection.ubo_binding,
common->ubo->get_buffer(),
ubo_offset, reflection.ubo_size);
}