<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);">
Series is:</div>
<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> Friday, June 14, 2019 5:27 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org<br>
<b>Subject:</b> [PATCH xf86-video-ati 3/3] Remove dri2_drawable_crtc parameter consider_disabled</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>
All callers were passing TRUE.<br>
<br>
(Ported from amdgpu commit ea19a5207054bb159fc7fb6d88e0ceb10c3da010)<br>
<br>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com><br>
---<br>
src/radeon_dri2.c | 10 +++++-----<br>
1 file changed, 5 insertions(+), 5 deletions(-)<br>
<br>
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c<br>
index c59d799ff..66a223d87 100644<br>
--- a/src/radeon_dri2.c<br>
+++ b/src/radeon_dri2.c<br>
@@ -509,11 +509,11 @@ static Bool radeon_dri2_get_crtc_msc(xf86CrtcPtr crtc, CARD64 *ust, CARD64 *msc)<br>
}<br>
<br>
static<br>
-xf86CrtcPtr radeon_dri2_drawable_crtc(DrawablePtr pDraw, Bool consider_disabled)<br>
+xf86CrtcPtr radeon_dri2_drawable_crtc(DrawablePtr pDraw)<br>
{<br>
ScreenPtr pScreen = pDraw->pScreen;<br>
ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);<br>
- xf86CrtcPtr crtc = radeon_pick_best_crtc(pScrn, consider_disabled,<br>
+ xf86CrtcPtr crtc = radeon_pick_best_crtc(pScrn, TRUE,<br>
pDraw->x, pDraw->x + pDraw->width,<br>
pDraw->y, pDraw->y + pDraw->height);<br>
<br>
@@ -928,7 +928,7 @@ CARD32 radeon_dri2_extrapolate_msc_delay(xf86CrtcPtr crtc, CARD64 *target_msc,<br>
*/<br>
static int radeon_dri2_get_msc(DrawablePtr draw, CARD64 *ust, CARD64 *msc)<br>
{<br>
- xf86CrtcPtr crtc = radeon_dri2_drawable_crtc(draw, TRUE);<br>
+ xf86CrtcPtr crtc = radeon_dri2_drawable_crtc(draw);<br>
<br>
/* Drawable not displayed, make up a value */<br>
if (!crtc) {<br>
@@ -1043,7 +1043,7 @@ static int radeon_dri2_schedule_wait_msc(ClientPtr client, DrawablePtr draw,<br>
ScrnInfoPtr scrn = xf86ScreenToScrn(screen);<br>
DRI2FrameEventPtr wait_info = NULL;<br>
uintptr_t drm_queue_seq = 0;<br>
- xf86CrtcPtr crtc = radeon_dri2_drawable_crtc(draw, TRUE);<br>
+ xf86CrtcPtr crtc = radeon_dri2_drawable_crtc(draw);<br>
uint32_t msc_delta;<br>
uint32_t seq;<br>
CARD64 current_msc;<br>
@@ -1192,7 +1192,7 @@ static int radeon_dri2_schedule_swap(ClientPtr client, DrawablePtr draw,<br>
{<br>
ScreenPtr screen = draw->pScreen;<br>
ScrnInfoPtr scrn = xf86ScreenToScrn(screen);<br>
- xf86CrtcPtr crtc = radeon_dri2_drawable_crtc(draw, TRUE);<br>
+ xf86CrtcPtr crtc = radeon_dri2_drawable_crtc(draw);<br>
uint32_t msc_delta;<br>
drmVBlankSeqType type;<br>
uint32_t seq;<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>