<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Reviewed-by: Alex Deucher <alexander.deucher@amd.com><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Michel Dänzer <michel@daenzer.net><br>
<b>Sent:</b> Thursday, March 14, 2019 6:15 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org<br>
<b>Subject:</b> [PATCH xf86-video-ati] Use radeon_finish in drmmode_crtc_scanout_update</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">From: Michel Dänzer <michel.daenzer@amd.com><br>
<br>
radeon_glamor_finish only works if we're using glamor, otherwise it'll<br>
crash.<br>
<br>
Fixes: ce7db51020d3 "Cancel pending scanout update in drmmode_crtc_scanout_update"<br>
Bug: <a href="https://bugs.debian.org/924540">https://bugs.debian.org/924540</a><br>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com><br>
---<br>
src/drmmode_display.c | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/drmmode_display.c b/src/drmmode_display.c<br>
index c5fccd2aa..002513f1a 100644<br>
--- a/src/drmmode_display.c<br>
+++ b/src/drmmode_display.c<br>
@@ -785,7 +785,7 @@ drmmode_crtc_scanout_update(xf86CrtcPtr crtc, DisplayModePtr mode,<br>
screen->GetWindowPixmap(screen->root),<br>
extents)) {<br>
RegionEmpty(DamageRegion(drmmode_crtc->scanout_damage));<br>
- radeon_glamor_finish(scrn);<br>
+ radeon_finish(scrn, drmmode_crtc->scanout[scanout_id].bo);<br>
<br>
if (!drmmode_crtc->flip_pending) {<br>
radeon_drm_abort_entry(drmmode_crtc-><br>
-- <br>
2.20.1<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a></div>
</span></font></div>
</body>
</html>