xserver-multidpi/dix
Keith Packard 9d457f9c55 Add screen-specific privates.
Screen-specific privates areas are only allocated for objects related
to the target screen; objects allocated for other screens will not
have the private space reserved. This saves memory in these objects
while also allowing hot-plug screens to have additional private
allocation space beyond what the core screens are using.

Drivers are encouraged to switch to this mechanism as it will reduce
memory usage in multi-GPU environments, but it is only required for
drivers which will be loaded after the server starts, like
modesetting.

Objects providing screen-specific privates *must* be managed by the
screen-specific private API when allocating or initializing privates
so that the per-screen area can be initialized properly.

The objects which support screen-specific privates are:

	Windows
	Pixmaps
	GCs
	Pictures

Extending this list to include Colormaps would be possible, but
require slightly more work as the default colormap is created before
all colormap privates are allocated during server startup, and hence
gets a bunch of special treatment.

Of particular note, glyphs are *not* capable of supporting
screen-specific privates as they are global objects, not allocated on
a screen-specific basis, and so each driver must be able to see their
privates within the glyph.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
2012-07-05 13:39:50 -07:00
..
.gitignore dix and os: gitignore dix.O and os.O 2011-09-23 17:14:47 -07:00
atom.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
buildatoms XFree86 4.3.0.1 2003-11-14 16:49:22 +00:00
BuiltInAtoms R6.6 is the Xorg base-line 2003-11-14 15:54:54 +00:00
colormap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
cursor.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
devices.c dix: disable all devices before shutdown 2012-06-07 14:13:51 +10:00
dispatch.c Add screen-specific privates. 2012-07-05 13:39:50 -07:00
dispatch.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dixfonts.c Add dixGetGlyphs to replace GetGlyphs from libXfont to simplify linking 2012-07-02 10:09:08 -07:00
dixutils.c api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
enterleave.c dix: Move DeviceFocusEvent from Xi into enterleave.c 2012-05-17 08:50:44 +10:00
enterleave.h dix: Move DeviceFocusEvent from Xi into enterleave.c 2012-05-17 08:50:44 +10:00
eventconvert.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
events.c Fix some overly indented/poorly line wrapped comments in dix/events.c 2012-06-20 21:41:42 -07:00
extension.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
ffs.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
gc.c Add screen-specific privates. 2012-07-05 13:39:50 -07:00
getevents.c Merge branch 'sigsafe-logging-varargs' 2012-07-02 22:35:39 -07:00
globals.c os: Add -displayfd option 2012-05-01 11:36:30 +10:00
glyphcurs.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
grabs.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
initatoms.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
inpututils.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
main.c Add screen-specific privates. 2012-07-05 13:39:50 -07:00
Makefile.am input: add a TouchClassRec to the devices 2011-12-19 09:08:36 +10:00
pixmap.c Add screen-specific privates. 2012-07-05 13:39:50 -07:00
privates.c Add screen-specific privates. 2012-07-05 13:39:50 -07:00
property.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
protocol.txt Add DRI2 requests to protocol.txt 2009-08-28 23:29:05 -04:00
ptrveloc.c dix: indentation fixes for pointer acceleration 2012-05-16 10:59:35 +10:00
region.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
registry.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
resource.c dix: add reference count of the resource to ResourceSizeRec 2012-04-18 12:49:11 +03:00
selection.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
swaprep.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
swapreq.c Indentation: Change '& stuff' to '&stuff' 2012-03-21 14:02:30 -07:00
tables.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
touch.c dix: fix memory leak in TouchEventHistoryReplay 2012-07-04 21:16:16 +10:00
window.c Add screen-specific privates. 2012-07-05 13:39:50 -07:00
Xserver-dtrace.h.in dix: add dtrace probes to input API 2012-03-22 11:33:42 +10:00
Xserver.d dix: add dtrace probes to input API 2012-03-22 11:33:42 +10:00