[PATCH xf86-video-amdgpu 03/11] Add RADEON_CREATE_PIXMAP_SCANOUT flag
Michel Dänzer
michel at daenzer.net
Wed Jun 10 02:04:18 PDT 2015
From: Michel Dänzer <michel.daenzer at amd.com>
It means that the pixmap is used for scanout exclusively.
(cherry picked from radeon commit e96349ba6281fd18b8bf9c76629128276b065e6c)
Signed-off-by: Darren Powell <darren.powell at amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
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
More information about the xorg-driver-ati
mailing list