]> O.S.I.I.S - jp/vkvg.git/commitdiff
use FIFO presentation by default for win10 + init all locals in tests
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 20 May 2020 20:39:40 +0000 (22:39 +0200)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 20 May 2020 20:39:40 +0000 (22:39 +0200)
tests/common/test.c
tests/common/vkengine.c
vkh

index b62c3d161fdf869ba1cf07ab64be71418e08ce66..fa486f72cb0b6dd18f9df5789713235406c46f5c 100644 (file)
@@ -133,7 +133,7 @@ double standard_deviation (const double data[], int n, double mean)
 /***************/
 
 void init_test (uint32_t width, uint32_t height){
-       e = vkengine_create (VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_PRESENT_MODE_MAILBOX_KHR, width, height);
+       e = vkengine_create (VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_PRESENT_MODE_FIFO_KHR, width, height);
        VkhPresenter r = e->renderer;
        vkengine_set_key_callback (e, key_callback);
        vkengine_set_mouse_but_callback(e, mouse_button_callback);
@@ -211,7 +211,7 @@ VkvgSurface* surfaces;
 void perform_test (void(*testfunc)(void), const char *testName, uint32_t width, uint32_t height) {
        //dumpLayerExts();
 
-       e = vkengine_create (VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_PRESENT_MODE_MAILBOX_KHR, width, height);
+       e = vkengine_create (VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU, VK_PRESENT_MODE_FIFO_KHR, width, height);
        VkhPresenter r = e->renderer;
        vkengine_set_key_callback (e, key_callback);
        vkengine_set_mouse_but_callback(e, mouse_button_callback);
@@ -234,7 +234,7 @@ void perform_test (void(*testfunc)(void), const char *testName, uint32_t width,
 #endif
 
 
-       double start_time, stop_time, run_time, run_total = 0.0, min_run_time = -1, max_run_time;
+       double start_time = 0.0, stop_time = 0.0, run_time = 0.0, run_total = 0.0, min_run_time = -1, max_run_time = 0.0;
        double* run_time_values = (double*)malloc(iterations*sizeof(double));
 
        int i = 0;
index 0547bf1d6ced5af09379ccb90c33fdff5fdea9db..7d3324ebf12b83a3a034c54f5fea260072f7be4c 100644 (file)
@@ -161,7 +161,7 @@ vk_engine_t* vkengine_create (VkPhysicalDeviceType preferedGPU, VkPresentModeKHR
        uint32_t qCount = 0;
        float qPriorities[] = {0.0};
 
-       VkDeviceQueueCreateInfo pQueueInfos[3];
+       VkDeviceQueueCreateInfo pQueueInfos[] = { {0},{0},{0} };
        if (vkh_phyinfo_create_presentable_queues       (pi, 1, qPriorities, &pQueueInfos[qCount]))
                qCount++;
        if (vkh_phyinfo_create_compute_queues           (pi, 1, qPriorities, &pQueueInfos[qCount]))
diff --git a/vkh b/vkh
index 947523ab880b6b3cc0fef08c48ddd4714c82c302..16acf51d3d3796c357aa307f9f502a1c71f676fc 160000 (submodule)
--- a/vkh
+++ b/vkh
@@ -1 +1 @@
-Subproject commit 947523ab880b6b3cc0fef08c48ddd4714c82c302
+Subproject commit 16acf51d3d3796c357aa307f9f502a1c71f676fc