[PATCH xf86-video-amdgpu 3/3] Clear damage in amdgpu_scanout_update if it doesn't intersect the CRTC
Michel Dänzer
michel at daenzer.net
Fri Jun 24 07:45:28 UTC 2016
From: Michel Dänzer <michel.daenzer at amd.com>
There's no need to test that same damage again.
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
src/amdgpu_kms.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index 23eb7dc..da009d1 100644
--- a/src/amdgpu_kms.c
+++ b/src/amdgpu_kms.c
@@ -411,8 +411,10 @@ amdgpu_scanout_update(xf86CrtcPtr xf86_crtc)
return;
extents = *RegionExtents(pRegion);
- if (!amdgpu_scanout_extents_intersect(xf86_crtc, &extents))
+ if (!amdgpu_scanout_extents_intersect(xf86_crtc, &extents)) {
+ RegionEmpty(pRegion);
return;
+ }
scrn = xf86_crtc->scrn;
drm_queue_seq = amdgpu_drm_queue_alloc(xf86_crtc,
--
2.8.1
More information about the amd-gfx
mailing list