diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2015-03-18 16:23:24 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2015-06-15 17:23:14 +0900 |
commit | e5dfb6c2667994701ee451bf82c4142cbf343405 (patch) | |
tree | 410da48e42c314d7567b59baab33563138997aee /src/amdgpu_dri3.c | |
parent | 08da7b691d556735dcc22b1351c886a5079dfd3f (diff) |
glamor: Add Option "ShadowPrimary"
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.
(Cherry picked from radeon commits ae92d1765fa370a8d94c2856ad6c45d273ec3c69
and 1af044d7eee211fd4b248c236280274a68334da5)
[ Michel Dänzer: Additional adjustements for the amdgpu driver ]
Signed-off-by: Darren Powell <darren.powell@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/amdgpu_dri3.c')
-rw-r--r-- | src/amdgpu_dri3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amdgpu_dri3.c b/src/amdgpu_dri3.c index ce0f8e7..a89421e 100644 --- a/src/amdgpu_dri3.c +++ b/src/amdgpu_dri3.c @@ -108,7 +108,8 @@ static PixmapPtr amdgpu_dri3_pixmap_from_fd(ScreenPtr screen, return NULL; } - pixmap = screen->CreatePixmap(screen, 0, 0, depth, 0); + pixmap = screen->CreatePixmap(screen, 0, 0, depth, + AMDGPU_CREATE_PIXMAP_DRI2); if (!pixmap) return NULL; |