[PATCH 3/7] Add RADEON_CREATE_PIXMAP_SCANOUT flag

Michel Dänzer michel at daenzer.net
Wed Apr 1 03:04:45 PDT 2015


From: Michel Dänzer <michel.daenzer at amd.com>

It means that the pixmap is used for scanout exclusively.

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/drmmode_display.c | 3 ++-
 src/radeon.h          | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index e8ae58d..e68f17e 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -98,7 +98,8 @@ static PixmapPtr drmmode_create_bo_pixmap(ScrnInfoPtr pScrn,
 	PixmapPtr pixmap;
 	struct radeon_surface *surface;
 
-	pixmap = (*pScreen->CreatePixmap)(pScreen, 0, 0, depth, 0);
+	pixmap = (*pScreen->CreatePixmap)(pScreen, 0, 0, depth,
+					  RADEON_CREATE_PIXMAP_SCANOUT);
 	if (!pixmap)
 		return NULL;
 
diff --git a/src/radeon.h b/src/radeon.h
index 00d0495..83b462b 100644
--- a/src/radeon.h
+++ b/src/radeon.h
@@ -838,6 +838,7 @@ static __inline__ void RADEON_SYNC(RADEONInfoPtr info, ScrnInfoPtr pScrn)
 }
 
 enum {
+    RADEON_CREATE_PIXMAP_SCANOUT		= 0x02000000,
     RADEON_CREATE_PIXMAP_DRI2			= 0x04000000,
     RADEON_CREATE_PIXMAP_TILING_MICRO_SQUARE	= 0x08000000,
     RADEON_CREATE_PIXMAP_TILING_MACRO		= 0x10000000,
-- 
2.1.4



More information about the xorg-driver-ati mailing list