diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-09-07 18:14:10 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-09-09 19:02:02 +0900 |
commit | 58773d1945cfa8155d8a6c5eb3f95097535604ef (patch) | |
tree | 319f6a16c8c6adddb54d7c4cd4cff0fe47d01e9d /src/amdgpu_glamor.c | |
parent | d166d04f6951f6a48d7d5ce5d31bba857fe0cb06 (diff) |
Use EventCallback to avoid flushing every time in the FlushCallback
We only need to flush for XDamageNotify events.
Significantly reduces compositing slowdown due to flushing overhead, in
particular with glamor.
(Ported from radeon commit 9a1afbf61fbb2827c86bd86d295fa0848980d60b)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/amdgpu_glamor.c')
-rw-r--r-- | src/amdgpu_glamor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amdgpu_glamor.c b/src/amdgpu_glamor.c index 62831d0..d29b096 100644 --- a/src/amdgpu_glamor.c +++ b/src/amdgpu_glamor.c @@ -460,8 +460,9 @@ void amdgpu_glamor_flush(ScrnInfoPtr pScrn) if (info->use_glamor) { glamor_block_handler(pScrn->pScreen); - info->gpu_flushed++; } + + info->gpu_flushed++; } void amdgpu_glamor_finish(ScrnInfoPtr pScrn) |