diff options
author | Jason Ekstrand <[email protected]> | 2018-09-14 14:27:43 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-01-22 10:42:57 -0600 |
commit | 673f33c77dd765f4f4609e1f62d659eb40c8c67a (patch) | |
tree | 661b9dec9bf69060e44d7427460f9cfe5ad68f23 /src/intel/vulkan/genX_query.c | |
parent | 2be89cbd826f9ac2703127025714a55595de33d3 (diff) |
anv: Implement CmdBegin/EndQueryIndexed
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/genX_query.c')
-rw-r--r-- | src/intel/vulkan/genX_query.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/intel/vulkan/genX_query.c b/src/intel/vulkan/genX_query.c index 638d6d8b4b2..c3ecd5b665b 100644 --- a/src/intel/vulkan/genX_query.c +++ b/src/intel/vulkan/genX_query.c @@ -417,6 +417,16 @@ void genX(CmdBeginQuery)( 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); struct anv_address query_addr = anv_query_address(pool, query); @@ -452,7 +462,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); |