summaryrefslogtreecommitdiff
path: root/src/radeon_glamor.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2015-03-18 16:23:24 +0900
committerMichel Dänzer <michel@daenzer.net>2015-04-03 11:42:00 +0900
commitae92d1765fa370a8d94c2856ad6c45d273ec3c69 (patch)
tree1c602a906d80ac92620f4a2d48e1b4353d5a9d19 /src/radeon_glamor.h
parenteea79472a84672ee4dc7adc4487cec6a4037048a (diff)
glamor: Add Option "ShadowPrimary" v2
When this option is enabled, most pixmaps (including the screen pixmap) are allocated in system RAM and mostly accessed by the CPU. Changed areas of the screen pixmap are copied to dedicated per-CRTC scanout pixmaps regularly, triggered by the vblank interrupt. v2: * Set region data pointer to NULL for keeping only the extents * Move pRegion and pBox local variable declarations closer to their uses in drmmode_set_mode_major()
Diffstat (limited to 'src/radeon_glamor.h')
-rw-r--r--src/radeon_glamor.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/radeon_glamor.h b/src/radeon_glamor.h
index ea385c76..1ba7049a 100644
--- a/src/radeon_glamor.h
+++ b/src/radeon_glamor.h
@@ -35,6 +35,16 @@
#include "radeon_surface.h"
+#ifndef CREATE_PIXMAP_USAGE_SHARED
+#define CREATE_PIXMAP_USAGE_SHARED RADEON_CREATE_PIXMAP_DRI2
+#endif
+
+#define RADEON_CREATE_PIXMAP_SHARED(usage) \
+ (((usage) & ~RADEON_CREATE_PIXMAP_TILING_FLAGS) == RADEON_CREATE_PIXMAP_DRI2 || \
+ (usage) == CREATE_PIXMAP_USAGE_SHARED)
+
+struct radeon_pixmap;
+
#ifndef GLAMOR_NO_DRI3
#define GLAMOR_NO_DRI3 0
#define glamor_fd_from_pixmap glamor_dri3_fd_from_pixmap