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>
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]))