summaryrefslogtreecommitdiff
path: root/src/amdgpu_drv.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-09-07 18:14:10 +0900
committerMichel Dänzer <michel@daenzer.net>2016-09-09 19:02:02 +0900
commit58773d1945cfa8155d8a6c5eb3f95097535604ef (patch)
tree319f6a16c8c6adddb54d7c4cd4cff0fe47d01e9d /src/amdgpu_drv.h
parentd166d04f6951f6a48d7d5ce5d31bba857fe0cb06 (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_drv.h')
-rw-r--r--src/amdgpu_drv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amdgpu_drv.h b/src/amdgpu_drv.h
index 60aa0be..d2b3a6b 100644
--- a/src/amdgpu_drv.h
+++ b/src/amdgpu_drv.h
@@ -209,6 +209,8 @@ typedef struct {
/* accel */
PixmapPtr fbcon_pixmap;
+ int callback_event_type;
+ uint_fast32_t callback_needs_flush;
uint_fast32_t gpu_flushed;
uint_fast32_t gpu_synced;
Bool use_glamor;