diff options
-rw-r--r-- | src/common.h | 11 | ||||
-rw-r--r-- | src/i830.h | 10 | ||||
-rw-r--r-- | uxa/uxa-glyphs.c | 4 |
3 files changed, 14 insertions, 11 deletions
diff --git a/src/common.h b/src/common.h index c12e8a7d..73b4d05f 100644 --- a/src/common.h +++ b/src/common.h @@ -403,4 +403,15 @@ extern int I810_DEBUG; struct pci_device * intel_host_bridge (void); +/** + * Hints to CreatePixmap to tell the driver how the pixmap is going to be + * used. + * + * Compare to CREATE_PIXMAP_USAGE_* in the server. + */ +enum { + INTEL_CREATE_PIXMAP_TILING_X = 0x10000000, + INTEL_CREATE_PIXMAP_TILING_Y, +}; + #endif /* _INTEL_COMMON_H_ */ @@ -1065,16 +1065,6 @@ extern const int I830CopyROP[16]; #define QUIRK_IGNORE_CRT 0x00000080 #define QUIRK_BROKEN_ACPI_LID 0x00000100 extern void i830_fixup_devices(ScrnInfoPtr); -/** - * Hints to CreatePixmap to tell the driver how the pixmap is going to be - * used. - * - * Compare to CREATE_PIXMAP_USAGE_* in the server. - */ -enum { - INTEL_CREATE_PIXMAP_TILING_X = 0x10000000, - INTEL_CREATE_PIXMAP_TILING_Y, -}; void i830_debug_flush(ScrnInfoPtr scrn); diff --git a/uxa/uxa-glyphs.c b/uxa/uxa-glyphs.c index ff167812..5c233216 100644 --- a/uxa/uxa-glyphs.c +++ b/uxa/uxa-glyphs.c @@ -47,6 +47,7 @@ #include <stdlib.h> #include "uxa-priv.h" +#include "../src/common.h" #include "mipict.h" @@ -189,7 +190,8 @@ static Bool uxa_realize_glyph_caches(ScreenPtr pScreen, unsigned int format) pPixmap = (*pScreen->CreatePixmap) (pScreen, CACHE_PICTURE_WIDTH, - height, depth, 0); + height, depth, + INTEL_CREATE_PIXMAP_TILING_X); if (!pPixmap) return FALSE; |