summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorOwain G. Ainsworth <oga@openbsd.org>2011-03-16 18:41:29 +0000
committerOwain G. Ainsworth <oga@openbsd.org>2011-03-16 18:41:29 +0000
commiteca10514c62ae1ca58dec397b51360b595d4ba4d (patch)
treee95d642aa978d812ecbe1b40a07b32d335c57e9f /src/common.h
parenta172a718b000f8532af7ec462f10c312bce632e3 (diff)
shadow+dri2: Allow dri2 to be independently enabled with shadow
To enable DRI we create GEM buffers for the client to render into with hardware acceleration. In order to maintain coherency between any 2D render operations with the independent 3D clients (this includes the reading of 2D rasterisation by the direct rendering client, e.g. compiz using texture_from_pixmap) we need to replace the shadow pixmap with the GTT mapping. Therefore 2D rendering to a DRI buffer will be to uncached memory and thus penalised -- but the direct rendering clients will have full hardware acceleration. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> (cherry picked from commit 7c7294ec00d6c3a454a17a1b9983d14d0655162c) Conflicts: src/intel_dri.c src/intel_driver.c
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common.h b/src/common.h
index 4bc8d294..56c97b68 100644
--- a/src/common.h
+++ b/src/common.h
@@ -173,9 +173,10 @@ intel_host_bridge (void);
* Compare to CREATE_PIXMAP_USAGE_* in the server.
*/
enum {
- INTEL_CREATE_PIXMAP_TILING_X = 0x10000000,
- INTEL_CREATE_PIXMAP_TILING_Y,
- INTEL_CREATE_PIXMAP_TILING_NONE,
+ INTEL_CREATE_PIXMAP_TILING_X = 0x10000000,
+ INTEL_CREATE_PIXMAP_TILING_Y = 0x20000000,
+ INTEL_CREATE_PIXMAP_TILING_NONE = 0x40000000,
+ INTEL_CREATE_PIXMAP_DRI2 = 0x80000000,
};
#endif /* _INTEL_COMMON_H_ */