From ca17e359649c4f25ae9aa07352cfe5f532a8ca13 Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Wed, 11 Sep 2019 20:49:31 +0200 Subject: [PATCH] Don't use precise query control flag for statistic queries Fixes ##600 --- examples/pipelinestatistics/pipelinestatistics.cpp | 2 +- examples/terraintessellation/terraintessellation.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/pipelinestatistics/pipelinestatistics.cpp b/examples/pipelinestatistics/pipelinestatistics.cpp index 7e2fad3a..a46c7688 100644 --- a/examples/pipelinestatistics/pipelinestatistics.cpp +++ b/examples/pipelinestatistics/pipelinestatistics.cpp @@ -201,7 +201,7 @@ public: VkDeviceSize offsets[1] = { 0 }; // Start capture of pipeline statistics - vkCmdBeginQuery(drawCmdBuffers[i], queryPool, 0, VK_QUERY_CONTROL_PRECISE_BIT); + vkCmdBeginQuery(drawCmdBuffers[i], queryPool, 0, 0); vkCmdBindPipeline(drawCmdBuffers[i], VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline); vkCmdBindDescriptorSets(drawCmdBuffers[i], VK_PIPELINE_BIND_POINT_GRAPHICS, pipelineLayout, 0, 1, &descriptorSet, 0, NULL); diff --git a/examples/terraintessellation/terraintessellation.cpp b/examples/terraintessellation/terraintessellation.cpp index 9ac3d66a..a3856c9e 100644 --- a/examples/terraintessellation/terraintessellation.cpp +++ b/examples/terraintessellation/terraintessellation.cpp @@ -363,7 +363,7 @@ public: // Terrain if (deviceFeatures.pipelineStatisticsQuery) { // Begin pipeline statistics query - vkCmdBeginQuery(drawCmdBuffers[i], queryPool, 0, VK_QUERY_CONTROL_PRECISE_BIT); + vkCmdBeginQuery(drawCmdBuffers[i], queryPool, 0, 0); } // Render vkCmdBindPipeline(drawCmdBuffers[i], VK_PIPELINE_BIND_POINT_GRAPHICS, wireframe ? pipelines.wireframe : pipelines.terrain);