Re: Some questions
From: Thomas Winischhofer <thomas@winischhofer.net>
Date: 2003-03-11 22:22:59
Antonino Daplas wrote:
quoted
quoted
2. do not refresh unless var changed - fasted but can result in corruption/crash if registers were changed behind the back of fbdevI think one can rely on tidyness of applications changing the registers. Like X does.Unfortunately, this is what we are trying to prevent. X assumes that the console is in text mode, so only registers that affect text mode are restored. Frequently, cursor registers and bitmaps, as an example, are not refreshed. There's probably more, ie accel engine, etc.
That surprises me. The X drivers I looked at (quite a bunch) restore all registers (that need to be restored, that is)
quoted
quoted
3. selective refresh - do not refresh if switching between "trusted" consoles, refresh if switching from "untrusted" consoles.I actually prefer #3, and I already have working code for this. We can also make this driver switchable (ie, drivers that are not affected by X can disable this, and only drivers that are affected such as the riva, aty, radeon, etc can turn this on).
What exactly is a "trusted" console? Thomas -- Thomas Winischhofer Vienna/Austria mailto:thomas@winischhofer.net *** http://www.winischhofer.net ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en