[PATCH xf86-video-amdgpu] glamor: Don't flush in BlockHandler with Xorg >= 1.19

Michel Dänzer michel at daenzer.net
Mon Mar 6 09:49:50 UTC 2017


From: Michel Dänzer <michel.daenzer at amd.com>

This was only necessary with older versions for driving the FBO cache
expiry mechanism.

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/amdgpu_kms.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index d48ad480a..31c2e86f2 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);
-- 
2.11.0



More information about the amd-gfx mailing list