[Mesa-dev] [PATCH 10/13] anv: Implement CmdBegin/EndQueryIndexed
Jason Ekstrand
jason at jlekstrand.net
Sat Oct 13 13:09:57 UTC 2018
---
src/intel/vulkan/genX_query.c | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/src/intel/vulkan/genX_query.c b/src/intel/vulkan/genX_query.c
index 7533ec05095..4fffa6e7221 100644
--- a/src/intel/vulkan/genX_query.c
+++ b/src/intel/vulkan/genX_query.c
@@ -418,6 +418,16 @@ void genX(CmdBeginQuery)(
VkQueryPool queryPool,
uint32_t query,
VkQueryControlFlags flags)
+{
+ genX(CmdBeginQueryIndexedEXT)(commandBuffer, queryPool, query, flags, 0);
+}
+
+void genX(CmdBeginQueryIndexedEXT)(
+ VkCommandBuffer commandBuffer,
+ VkQueryPool queryPool,
+ uint32_t query,
+ VkQueryControlFlags flags,
+ uint32_t index)
{
ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer);
ANV_FROM_HANDLE(anv_query_pool, pool, queryPool);
@@ -454,7 +464,16 @@ void genX(CmdBeginQuery)(
void genX(CmdEndQuery)(
VkCommandBuffer commandBuffer,
VkQueryPool queryPool,
- uint32_t query)
+ VkQueryControlFlags flags)
+{
+ genX(CmdEndQueryIndexedEXT)(commandBuffer, queryPool, flags, 0);
+}
+
+void genX(CmdEndQueryIndexedEXT)(
+ VkCommandBuffer commandBuffer,
+ VkQueryPool queryPool,
+ uint32_t query,
+ uint32_t index)
{
ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer);
ANV_FROM_HANDLE(anv_query_pool, pool, queryPool);
--
2.19.1
More information about the mesa-dev
mailing list