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>
This commit is contained in:
Michel Dänzer
2017-03-03 17:59:19 +09:00
committed by Michel Dänzer
parent 86907a5e4c
commit 947017194d

View File

@@ -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);