summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2017-03-03 17:59:19 +0900
committerMichel Dänzer <michel@daenzer.net>2017-03-07 16:57:25 +0900
commit947017194d07e32876a43ee0efc45fdc71385748 (patch)
tree85dbb4de4fb7606c173d623fe583e71b21f8ff4a /src
parent86907a5e4ce33154167b330570491f88218725d3 (diff)
glamor: Don't flush in BlockHandler with Xorg >= 1.19
This was only necessary with older versions for driving the FBO cache expiry mechanism. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src')
-rw-r--r--src/amdgpu_kms.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index d48ad48..31c2e86 100644
--- a/src/amdgpu_kms.c
+++ b/src/amdgpu_kms.c
@@ -1035,8 +1035,10 @@ static void AMDGPUBlockHandler_KMS(BLOCKHANDLER_ARGS_DECL)
}
}
+#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,19,0,0,0)
if (info->use_glamor)
amdgpu_glamor_flush(pScrn);
+#endif
#ifdef AMDGPU_PIXMAP_SHARING
amdgpu_dirty_update(pScrn);