[PATCH] D80183: [mlir][vulkan-runner] Minor fix in timestamp flag for vulkan runner.

Thomas Raoux via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 18 22:13:01 PDT 2020


ThomasRaoux created this revision.
ThomasRaoux added a reviewer: antiagainst.
Herald added subscribers: llvm-commits, jurahul, Kayjukh, frgossen, grosul1, Joonsoo, stephenneuendorffer, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, shauheen, jpienaar, rriddle, mehdi_amini.
Herald added a project: LLVM.

The first timestamp query should use VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D80183

Files:
  mlir/tools/mlir-vulkan-runner/VulkanRuntime.cpp


Index: mlir/tools/mlir-vulkan-runner/VulkanRuntime.cpp
===================================================================
--- mlir/tools/mlir-vulkan-runner/VulkanRuntime.cpp
+++ mlir/tools/mlir-vulkan-runner/VulkanRuntime.cpp
@@ -728,7 +728,7 @@
                           descriptorSets.data(), 0, 0);
   // Get a timestamp before invoking the compute shader.
   if (queryPool != VK_NULL_HANDLE)
-    vkCmdWriteTimestamp(commandBuffer, VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT,
+    vkCmdWriteTimestamp(commandBuffer, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT,
                         queryPool, 0);
   vkCmdDispatch(commandBuffer, numWorkGroups.x, numWorkGroups.y,
                 numWorkGroups.z);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80183.264790.patch
Type: text/x-patch
Size: 692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200519/a1a4e11e/attachment.bin>


More information about the llvm-commits mailing list