[Mesa-dev] [PATCH] st-api: Rework how drawables are invalidated v2
Jose Fonseca
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 [1] 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.
Jose
[1] http://msdn.microsoft.com/en-us/library/dd374387(v=vs.85).aspx
More information about the mesa-dev
mailing list