Am Freitag, 30. Mai 2008 19:57:32 schrieb Matthias Hopf:
> At least on suspend to RAM many GPUs can probably be programmed to keep
> VRAM contents alive. In that case you wouldn't have to save that data
> as well.
It's a bit far fetched and probably out of question here, but Direct3D has the 
concept of a "lost device" for cases like that. Whenever the video memory 
content is lost, the device becomes unusable, the app has to reset it and 
reload all resources. This hands the responibility for restoring the 3D 
rendering over to the app, which knows best where to get the resources 
from(load from disk, system memory or whatever).

Now OpenGL doesn't have that, apps rely on opengl to restore their textures. 
However, it might be an option to add an extension which allows apps to tell 
the GL implementation that it can deal with lost resources. If non-game apps 
like Compiz support this, it would be enough to improve the suspend 
performance considerably.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to