[PATCH xf86-video-ati] Use radeon_finish in drmmode_crtc_scanout_update

Deucher, Alexander Alexander.Deucher at amd.com
Thu Mar 14 13:15:43 UTC 2019


Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
________________________________
From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> on behalf of Michel Dänzer <michel at daenzer.net>
Sent: Thursday, March 14, 2019 6:15 AM
To: amd-gfx at lists.freedesktop.org
Subject: [PATCH xf86-video-ati] Use radeon_finish in drmmode_crtc_scanout_update

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

radeon_glamor_finish only works if we're using glamor, otherwise it'll
crash.

Fixes: ce7db51020d3 "Cancel pending scanout update in drmmode_crtc_scanout_update"
Bug: https://bugs.debian.org/924540
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/drmmode_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index c5fccd2aa..002513f1a 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -785,7 +785,7 @@ drmmode_crtc_scanout_update(xf86CrtcPtr crtc, DisplayModePtr mode,
                                              screen->GetWindowPixmap(screen->root),
                                              extents)) {
                         RegionEmpty(DamageRegion(drmmode_crtc->scanout_damage));
-                       radeon_glamor_finish(scrn);
+                       radeon_finish(scrn, drmmode_crtc->scanout[scanout_id].bo);

                         if (!drmmode_crtc->flip_pending) {
                                 radeon_drm_abort_entry(drmmode_crtc->
--
2.20.1

_______________________________________________
amd-gfx mailing list
amd-gfx at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20190314/069ae9d0/attachment.html>


More information about the amd-gfx mailing list