[Mesa-dev] [PATCH 4/4] pipe: Add new bind flag for shared resources with flush_resource call

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Wed Oct 21 04:16:25 PDT 2015


On Wed, Oct 21, 2015 at 12:28 PM, Axel Davy <axel.davy at ens.fr> wrote:
> +/* This flag indicates that in addition to being shared, the resource won't be
> + * read by any external process before we call flush_resource. This allows
> + * things like compressing the buffer when drawing, while uncompressing on
> + * flush_resource. The PIPE_BIND_SHARED must still be set with this flag.
> + * If PIPE_BIND_SHARED is specified but not
> + * PIPE_BIND_SHARED_FLUSH_RESOURCE, then the resource must be
> + * readable by external processes after any normal flush. */

I think these comments would allow the dri2 front buffer to have this
flag set as it is never shared with another process?

- Bas


More information about the mesa-dev mailing list