[Mesa-dev] [PATCH v2 25/37] panfrost: Add a batch fence

Alyssa Rosenzweig alyssa at rosenzweig.io
Mon Sep 16 19:38:10 UTC 2019


> +        /* Start in a signaled state so that even non-submitted batches
> +         * (those that have no draw/clear) can be waited upon.
> +         */

When would this happen? Presumably if a batch does nothing whatsoever,
it doesn't make sense to wait on it.
>  #include "pan_resource.h"
>  
> +        /* Batch that created this fence object. Will become NULL at batch
> +         * submission time. This field is mainly here to know whether the
> +         * batch has been flushed or not.
> +         */
> +        struct panfrost_batch *batch;

Could this be replaced by just a `bool flushed`, or do we actually use
the value in a later patch?


More information about the mesa-dev mailing list