Am Freitag, 20. Februar 2004 08:39 schrieb Erdi Chen: > This is a patch to call the context handles destructors and free the > context bitmap entries when a process does not destroy its contexts > before it exits. It saves context handles in a linked list in the > drm_device struct. I decided to use per device list instead of a per > file descriptor list for simplicity because the number of contexts will > usually be small.
What is "small" for you? Can you please elaborate? OpenGL is not DirectX (D3D). We test progs/xdemos/glthreads and progs/xdemos/manywin with n >= 100... > A new semaphore, ctxlist_sem, is added to the > drm_device struct because the patch will call functions that will down > the struct_sem during list traversal. The patch is generated against > the DRI CVS tree that is updated at 02-19-2004. It should also apply to > the VIA branch with the exception that the line that calls sema_init > would fail. Thank you for your support! -- Dieter Nützel @home: <Dieter.Nuetzel () hamburg ! de> ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel