xserver-multidpi/include
Tiago Vignatti 8976e9766e dix: adds support for none root window background
It lets the driver notify the server whether it can draw a background when
'-background none' option is used by the system platform. Use cases for that
could be video drivers performing mode-setting in kernel time, before X is up,
so a seamless transition would happen until X clients start to show up.

If the driver can copy the framebuffer cleanly then it can set the flag
(canDoBGNoneRoot), otherwise the server will fallback to the normal behaviour.
The system must explicit indicates willingness of doing so through
'-background none'. We could do this option as default; in such case,
malicious users would be able to steal the framebuffer with a bit of tricks.

For instance, I can see the content of my nVidia Quadro FX 580 framebuffer
old X session modifying a bit nv driver:

     xf86DPMSInit(pScreen, xf86DPMSSet, 0);

-    /* Clear the screen */
-    if(pNv->xaa) {
-        /* Use the acceleration engine */
-        pNv->xaa->SetupForSolidFill(pScrn, 0, GXcopy, ~0);
-        pNv->xaa->SubsequentSolidFillRect(pScrn,
-            0, 0, pScrn->displayWidth, pNv->offscreenHeight);
-        G80DmaKickoff(pNv);
-    } else {
-        /* Use a slow software clear path */
-        memset(pNv->mem, 0, pitch * pNv->offscreenHeight);
-    }
+    pScreen->canDoBGNoneRoot = TRUE;

The commit is originally based on discussions happened on xorg-devel:
http://lists.freedesktop.org/archives/xorg-devel/2010-June/009755.html

Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Reviewed-by: Rami Ylimäki <rami.ylimaki@vincit.fi>
Acked-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
2010-11-11 23:24:43 +02:00
..
.gitignore
bstore.h
bstorestr.h
callback.h
closestr.h
closure.h
colormap.h
colormapst.h
cursor.h
cursorstr.h
dix-config-apple-verbatim.h
dix-config.h.in
dix.h
dixaccess.h
dixevents.h
dixfont.h
dixfontstr.h
dixgrabs.h
dixstruct.h
eventconvert.h
events.h
eventstr.h fix a sign problem with valuator data. 2010-10-18 10:16:23 +10:00
exevents.h Add support for per-axis valuator modes (Relative/Absolute) 2010-10-22 13:37:57 +10:00
extension.h
extinit.h
extnsionst.h
gc.h
gcstruct.h
globals.h
hotplug.h
input.h input: add valuator_get_mode() helper. 2010-10-22 16:18:56 +10:00
inputstr.h input: remove "mode" field from ValuatorClassRec. 2010-10-22 16:19:00 +10:00
inpututils.h dix: remove valuator_mask_copy_valuators, not needed anymore. 2010-10-22 11:02:53 +10:00
kdrive-config.h.in
list.h
Makefile.am Abstract valuator masks through a set of APIs. 2010-10-22 11:02:48 +10:00
misc.h
miscstruct.h
opaque.h dix: adds support for none root window background 2010-11-11 23:24:43 +02:00
os.h
pixmap.h
pixmapstr.h
privates.h
property.h
propertyst.h
protocol-versions.h
ptrveloc.h
region.h
regionstr.h
registry.h
resource.h
rgb.h
screenint.h
scrnintstr.h dix: adds support for none root window background 2010-11-11 23:24:43 +02:00
selection.h
servermd.h
site.h dix: delete logo hack screen saver 2010-11-11 23:20:35 +02:00
swaprep.h
swapreq.h
validate.h
version-config.h.in
window.h
windowstr.h
XIstubs.h
xkb-config.h.in
xkbfile.h
xkbrules.h
xkbsrv.h
xkbstr.h
xorg-config.h.in
xorg-server.h.in
xserver-properties.h
xsha1.h
xwin-config.h.in