Module: Mesa Branch: main Commit: 5c4fbae571f0448897f05399b256d4ca48b3a24b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c4fbae571f0448897f05399b256d4ca48b3a24b
Author: Alyssa Rosenzweig <[email protected]> Date: Tue Aug 17 16:40:53 2021 +0000 panfrost: Add foreach_batch iterator Using the active mask. Signed-off-by: Alyssa Rosenzweig <[email protected]> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12528> --- src/gallium/drivers/panfrost/pan_job.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c index f7339678f30..67f7b66ed3a 100644 --- a/src/gallium/drivers/panfrost/pan_job.c +++ b/src/gallium/drivers/panfrost/pan_job.c @@ -40,6 +40,9 @@ #include "decode.h" #include "panfrost-quirks.h" +#define foreach_batch(ctx, idx) \ + BITSET_FOREACH_SET(idx, ctx->batches.active, PAN_MAX_BATCHES) + static unsigned panfrost_batch_idx(struct panfrost_batch *batch) {
