[Mesa-dev] [PATCH] st-api: Rework how drawables are invalidated v2
jfonseca at vmware.com
Wed Jun 29 01:10:00 PDT 2011
----- Original Message -----
> Note that the state trackers themselves don't use atomic stamps on
> frame-buffers. Multiple context rendering to the same drawable should
> be protected by the application.
I known that contexts must not be used by two threads simultaneously, but I don't recall ever reading similar constraint for drawables. Is this written anywhere? Neither glXMakeCurrent man page nor wglMakeCurrent reference page  mentions such constraint.
Of course, rendering from two contexts to the same drawable will usually be effective only when the context flushes. But AFAICS, the application should not need any additional lbocking.
Unfortunately, I can't find such mesa demo: xdemos/corender and xdemos/multictx are close but not quite. A "multictx_mt" version would be necessary.
More information about the mesa-dev