diff options
author | Eric Anholt <eric@anholt.net> | 2009-02-27 19:09:49 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-02-27 19:09:49 -0800 |
commit | 5bfd73cd31ba197a62f549cdbad1a1270b571027 (patch) | |
tree | 50430d9a372c5a69c84c73e8f7fdd7b48041f149 /src/i830.h | |
parent | f53bdad1412f841075232455837578f00709c6ef (diff) |
Only allocate pixmaps aligned for tiling when requested by DRI2 GetBuffers.
This saves massive quantities of memory on pre-965 since the DRI2 tiling
enable caused the minimum size of any pixmap to be 1MB.
Diffstat (limited to 'src/i830.h')
-rw-r--r-- | src/i830.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1090,4 +1090,15 @@ extern const int I830CopyROP[16]; #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, +}; + #endif /* _I830_H_ */ |