On Tue, 2005-02-08 at 00:12 +0500, Dimitry Naldayev wrote: > Michel DÃnzer <[EMAIL PROTECTED]> writes: > > > On Sun, 2005-02-06 at 19:32 +0500, Dimitry Naldayev wrote: > >> Michel DÃÂnzer <[EMAIL PROTECTED]> writes: > > I am about the X server and drm module --- what happens when we do vt > switch? How this event dispatched? what parts of code I need to look to > understand this?
RADEONLeaveVT() in radeon_driver.c. > >> 2) what differences between vt switch and context switch from hardware/drm > >> point of view? > > > > None, really. Without this patch (and even with it if there are clients > > using the DRM), the X server simply holds the hardware lock while > > switched away to prevent clients from touching the hardware. > > > No, I am not about this. X server holds hardware lock becouse drm not ready > to share hardware between different X sessions... but why? Because there's only one hardware lock per device. > See my logic: > > first case: > 1) we have window and render OpenGL inside it. DRM manage OpenGL data to > hardware... > 2) now we HIDE the window by other window. Are the OpenGL data will go to > hardware? No, becouse the OpenGL window hiden... > > Second case: > 1) we have window and render OpenGL inside it. DRM manage OpenGL data to > hardware... > 2) now we do vt switch... > > What differences between first and second cases? The first case can still touch the hardware, it just can't render to the window. > why X server need to hold lock on hardware? As I said above: To prevent clients from touching the hardware. > Why DRM cannot manage second case as it manage first one? The DRM doesn't manage either case, the X server and the clients do. > What we need to add to DRM for this? Something like several per-screen hardware locks, for example. -- Earthling Michel DÃnzer | Debian (powerpc), X and DRI developer Libre software enthusiast | http://svcs.affero.net/rm.php?r=daenzer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel