intel: batch consecutive dispatches into implicit renderpasses

Reviewed-by: Mark Janes <markjanes@swizzler.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22723>
This commit is contained in:
Felix DeGrood
2023-04-26 20:13:58 +00:00
committed by Marge Bot
parent 82f6a477f3
commit 07ec481cd8
+3 -3
View File
@@ -305,9 +305,9 @@ intel_measure_state_changed(const struct intel_measure_batch *batch,
}
if (config.flags & INTEL_MEASURE_RENDERPASS) {
return ((last_snap->renderpass != batch->renderpass) ||
/* compute workloads are always in their own renderpass */
(cs != 0));
bool new_renderpass = !cs && last_snap->renderpass != batch->renderpass;
bool new_compute_block = cs && last_snap->type != INTEL_SNAPSHOT_COMPUTE;
return new_renderpass || new_compute_block;
}
/* remaining comparisons check the state of the render pipeline for