summaryrefslogtreecommitdiff
path: root/src/i830.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-02-27 19:09:49 -0800
committerEric Anholt <eric@anholt.net>2009-02-27 19:09:49 -0800
commit5bfd73cd31ba197a62f549cdbad1a1270b571027 (patch)
tree50430d9a372c5a69c84c73e8f7fdd7b48041f149 /src/i830.h
parentf53bdad1412f841075232455837578f00709c6ef (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.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/i830.h b/src/i830.h
index a0ae571d..cd9c38ab 100644
--- a/src/i830.h
+++ b/src/i830.h
@@ -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_ */