Style nits

This commit is contained in:
twinaphex 2016-02-19 11:29:15 +01:00
parent a61536ffdc
commit c105fb22f3

View File

@ -482,10 +482,10 @@ static bool vulkan_init_context(gfx_ctx_vulkan_data_t *vk)
{
unsigned i;
uint32_t queue_count;
VkQueueFamilyProperties queue_properties[32];
VkInstanceCreateInfo info = { VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO };
VkDeviceQueueCreateInfo queue_info = { VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO };
VkDeviceCreateInfo device_info = { VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO };
VkQueueFamilyProperties queue_properties[32];
uint32_t gpu_count = 1;
bool found_queue = false;
static const float one = 1.0f;
@ -529,12 +529,18 @@ static bool vulkan_init_context(gfx_ctx_vulkan_data_t *vk)
return false;
}
vkGetPhysicalDeviceProperties(vk->context.gpu, &vk->context.gpu_properties);
vkGetPhysicalDeviceMemoryProperties(vk->context.gpu, &vk->context.memory_properties);
vkGetPhysicalDeviceQueueFamilyProperties(vk->context.gpu, &queue_count, NULL);
vkGetPhysicalDeviceProperties(vk->context.gpu,
&vk->context.gpu_properties);
vkGetPhysicalDeviceMemoryProperties(vk->context.gpu,
&vk->context.memory_properties);
vkGetPhysicalDeviceQueueFamilyProperties(vk->context.gpu,
&queue_count, NULL);
if (queue_count < 1 || queue_count > 32)
return false;
vkGetPhysicalDeviceQueueFamilyProperties(vk->context.gpu, &queue_count, queue_properties);
vkGetPhysicalDeviceQueueFamilyProperties(vk->context.gpu,
&queue_count, queue_properties);
for (i = 0; i < queue_count; i++)
{