diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-09-07 18:28:23 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-09-09 19:02:11 +0900 |
commit | c7d27c94cb656899746898c2e55407c3e3d7cdc8 (patch) | |
tree | 047afa799841e7054d74d297cb3336614cf1ce29 /src/amdgpu_drv.h | |
parent | 58773d1945cfa8155d8a6c5eb3f95097535604ef (diff) |
Keep track of damage event related flushes per-client
This further reduces the compositing slowdown due to flushing overhead,
by only flushing when the X server actually sends XDamageNotify events
to a client, and there hasn't been a flush yet in the meantime.
(Ported from radeon commit 121a6de72da5fcf9a32408eff36b2235f3dfbcfe)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/amdgpu_drv.h')
-rw-r--r-- | src/amdgpu_drv.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/amdgpu_drv.h b/src/amdgpu_drv.h index d2b3a6b..fc6a79d 100644 --- a/src/amdgpu_drv.h +++ b/src/amdgpu_drv.h @@ -185,6 +185,10 @@ struct amdgpu_buffer { uint32_t flags; }; +struct amdgpu_client_priv { + uint_fast32_t needs_flush; +}; + typedef struct { EntityInfoPtr pEnt; pciVideoPtr PciInfo; @@ -210,7 +214,6 @@ 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; |