diff options
author | Dave Airlie <airlied@redhat.com> | 2017-10-27 09:59:00 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-10-27 10:00:25 +1000 |
commit | 3c434f41fb18124499a3e775dcbc785f274e2bfc (patch) | |
tree | 2abd5a6bd905b4e4d23cc36b84eddf12fc153abb | |
parent | 40a9f10ea78249d868060d77e54ee0cd6a218d5f (diff) |
t: get queue information at startup.
This fixes a couple of validation warnings.
It doesn't need to be used, you just have to enumerate it
-rw-r--r-- | src/framework/test/t_phase_setup.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/framework/test/t_phase_setup.c b/src/framework/test/t_phase_setup.c index 464eb2c..89dbd87 100644 --- a/src/framework/test/t_phase_setup.c +++ b/src/framework/test/t_phase_setup.c @@ -400,6 +400,15 @@ t_setup_vulkan(void) t_setup_phys_dev(); + uint32_t queue_family_count; + vkGetPhysicalDeviceQueueFamilyProperties(t->vk.physical_dev, + &queue_family_count, NULL); + for (uint32_t i = 0; i < queue_family_count; i++) { + VkQueueFamilyProperties *props = malloc(queue_family_count * sizeof(VkQueueFamilyProperties)); + vkGetPhysicalDeviceQueueFamilyProperties(t->vk.physical_dev, + &queue_family_count, props); + free(props); + } qoGetPhysicalDeviceMemoryProperties(t->vk.physical_dev, &t->vk.physical_dev_mem_props); |