anv: fix perf queries
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 6 Jan 2022 14:45:57 +0000 (14:45 +0000)
committerMarge Bot <emma+marge@anholt.net>
Thu, 13 Jan 2022 07:54:22 +0000 (07:54 +0000)
We're not saving the first pool.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 36ea90a3619f ("anv: Convert to the common sync and submit framework")
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14420>

src/intel/vulkan/anv_batch_chain.c

index e603712..c7808c8 100644 (file)
@@ -2178,6 +2178,10 @@ anv_queue_submit_locked(struct anv_queue *queue,
       const uint32_t end = submit->command_buffer_count;
       while (start < end) {
          uint32_t i = start + 1;
+
+         /* Save the first query pool or NULL */
+         perf_query_pool = cmd_buffers[start]->perf_query_pool;
+
          for (; i < end; i++) {
             /* Can we chain the last buffer into the next one? */
             if (!anv_cmd_buffer_is_chainable(cmd_buffers[i]))