summaryrefslogtreecommitdiff
path: root/driver/xf86-video-intel
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-07-18 15:00:10 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-07-18 15:00:10 +0000
commitd11850bbce63b08d1631cb121288af945ceca3f6 (patch)
treed37b6227a8ee8c971046cbbfed079af93c6af12e /driver/xf86-video-intel
parent8df2bfd4db2b65ec1edd2563a4fa879c75a1660d (diff)
Don't put glyphs pixmaps into buffer objects under uxa.
in the fastpath they're going straight to the glyph cache anyway and doing so for small glyphs wastes memory since bos must be padded to page size. Backport from upstream (to aid gem development). ok matthieu@
Diffstat (limited to 'driver/xf86-video-intel')
-rw-r--r--driver/xf86-video-intel/src/i830_exa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/driver/xf86-video-intel/src/i830_exa.c b/driver/xf86-video-intel/src/i830_exa.c
index e181f3bac..ceeeec23f 100644
--- a/driver/xf86-video-intel/src/i830_exa.c
+++ b/driver/xf86-video-intel/src/i830_exa.c
@@ -945,6 +945,9 @@ i830_uxa_create_pixmap (ScreenPtr screen, int w, int h, int depth, unsigned usag
return NullPixmap;
#ifdef SERVER_1_5
+ if (usage == CREATE_PIXMAP_USAGE_GLYPH_PICTURE)
+ return fbCreatePixmap (screen, w, h, depth, usage);
+
pixmap = fbCreatePixmap (screen, 0, 0, depth, usage);
#else
pixmap = fbCreatePixmap (screen, 0, 0, depth);