xserver-multidpi/render
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
..
animcur.c api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
filter.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glyph.c render/exa: use glyph picture accessors 2012-05-21 12:59:20 +01:00
glyphstr.h render: add GetGlyphPicture accessor. 2012-05-21 12:59:20 +01:00
Makefile.am render: Delete renderedge.[ch] 2010-11-01 22:54:18 -04:00
matrix.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
miindex.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
mipict.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
mipict.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
mirect.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
mitrap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
mitri.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
picture.c Add screen-specific privates. 2012-07-05 13:39:50 -07:00
picture.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
picturestr.h dix/render: consolidate window format matching code. 2012-06-28 10:43:35 -07:00
render.c render/exa: use glyph picture accessors 2012-05-21 12:59:20 +01:00