From: Michel Dänzer <[email protected]>

It means that the pixmap is used for scanout exclusively.

(cherry picked from radeon commit e96349ba6281fd18b8bf9c76629128276b065e6c)

Signed-off-by: Darren Powell <[email protected]>
Signed-off-by: Michel Dänzer <[email protected]>
---
 src/amdgpu_pixmap.h   | 5 +++--
 src/drmmode_display.c | 3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/amdgpu_pixmap.h b/src/amdgpu_pixmap.h
index e37466c..c5cf137 100644
--- a/src/amdgpu_pixmap.h
+++ b/src/amdgpu_pixmap.h
@@ -101,8 +101,9 @@ static inline struct amdgpu_buffer 
*amdgpu_get_pixmap_bo(PixmapPtr pPix)
 }
 
 enum {
-       AMDGPU_CREATE_PIXMAP_DRI2 = 0x08000000,
-       AMDGPU_CREATE_PIXMAP_LINEAR = 0x04000000
+       AMDGPU_CREATE_PIXMAP_DRI2    = 0x08000000,
+       AMDGPU_CREATE_PIXMAP_LINEAR  = 0x04000000,
+       AMDGPU_CREATE_PIXMAP_SCANOUT = 0x02000000,
 };
 
 extern Bool amdgpu_pixmap_init(ScreenPtr screen);
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 7264ea0..d855787 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -97,7 +97,8 @@ static PixmapPtr drmmode_create_bo_pixmap(ScrnInfoPtr pScrn,
        ScreenPtr pScreen = pScrn->pScreen;
        PixmapPtr pixmap;
 
-       pixmap = (*pScreen->CreatePixmap) (pScreen, 0, 0, depth, 0);
+       pixmap = (*pScreen->CreatePixmap)(pScreen, 0, 0, depth,
+                                         AMDGPU_CREATE_PIXMAP_SCANOUT);
        if (!pixmap)
                return NULL;
 
-- 
2.1.4

_______________________________________________
xorg-driver-ati mailing list
[email protected]
http://lists.x.org/mailman/listinfo/xorg-driver-ati

Reply via email to