My apologies, wrong term. I meant the front buffer of the X server in the non-compositing case.
- Bas On Wed, Oct 21, 2015 at 1:26 PM, Axel Davy <axel.d...@ens.fr> wrote: > On 21/10/2015 13:16, Bas Nieuwenhuizen wrote: >> >> On Wed, Oct 21, 2015 at 12:28 PM, Axel Davy <axel.d...@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 >> > The front buffer is read by the X server, which is another process. > > In the case we have a fake front buffer, waitX/waitGL will trigger > read/writes with the X server real front buffer. > > We could advertise the flag for fake front buffers if we were calling > flush_resource for waitX/waitGL, > but we don't do that. > > Axel _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev