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_drv.h | |
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_drv.h')
-rw-r--r-- | src/amdgpu_drv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amdgpu_drv.h b/src/amdgpu_drv.h index 467c2fb..55be626 100644 --- a/src/amdgpu_drv.h +++ b/src/amdgpu_drv.h @@ -142,6 +142,7 @@ typedef enum { OPTION_ZAPHOD_HEADS, OPTION_ACCEL_METHOD, OPTION_DRI3, + OPTION_SHADOW_PRIMARY, } AMDGPUOpts; #define AMDGPU_VSYNC_TIMEOUT 20000 /* Maximum wait for VSYNC (in usecs) */ @@ -203,6 +204,7 @@ typedef struct { uint_fast32_t gpu_flushed; uint_fast32_t gpu_synced; Bool use_glamor; + Bool shadow_primary; /* general */ OptionInfoPtr Options; |