summaryrefslogtreecommitdiff
path: root/src/amdgpu_pixmap.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2015-05-29 18:53:36 +0900
committerMichel Dänzer <michel@daenzer.net>2015-06-15 17:19:44 +0900
commitcc5671c587d575b2a7d2802d17e8af0384a2cea5 (patch)
tree4c0b0fe4ab79cf1b960c5ae309f879be653349c4 /src/amdgpu_pixmap.h
parent21834953ee64920438dee1c94f3a1e53dc58b82d (diff)
Add RADEON_CREATE_PIXMAP_SCANOUT flag
It means that the pixmap is used for scanout exclusively. (cherry picked from radeon commit e96349ba6281fd18b8bf9c76629128276b065e6c) Signed-off-by: Darren Powell <darren.powell@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/amdgpu_pixmap.h')
-rw-r--r--src/amdgpu_pixmap.h5
1 files changed, 3 insertions, 2 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);