From 9d179818293b466ec6f1777f0b792e1fbbeb318c Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 5 Jun 2012 17:09:38 +0100 Subject: dix: introduce gpu screens. (v5) This patch introduces gpu screens into screenInfo. It adds interfaces for adding and removing gpu screens, along with adding private fixup, block handler support, and scratch pixmap init. GPU screens have a myNum that is offset by GPU_SCREEN_OFFSET (256), this is used for logging etc. RemoveGPUScreen isn't used until "xfree86: add platform bus hotplug support". v2: no glyph pictures for GPU screens for now. v3: introduce MAXGPUSCREENS, fix return value check v4: fixup myNum when renumbering screens (ajax) v5: drop cursor privates for now. Reviewed-by: Keith Packard Signed-off-by: Dave Airlie --- render/glyph.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'render') diff --git a/render/glyph.c b/render/glyph.c index acb573fe6..c121e64a2 100644 --- a/render/glyph.c +++ b/render/glyph.c @@ -687,6 +687,8 @@ miGlyphs(CARD8 op, PicturePtr GetGlyphPicture(GlyphPtr glyph, ScreenPtr pScreen) { + if (pScreen->isGPU) + return NULL; return GlyphPicture(glyph)[pScreen->myNum]; } -- cgit v1.2.3