<div dir="ltr">I made a not upstream capable fix in MDP5 driver's CRTC cursor move function:<div><br></div><div><a href="https://www.spinics.net/lists/dri-devel/msg182667.html">https://www.spinics.net/lists/dri-devel/msg182667.html</a><br></div><div><br></div><div>Seems to work.</div><div><br></div><div>Thank's for your help.</div><div><br></div><div>Best regards</div><div>-Carsten</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-07-09 9:43 GMT+02:00 Michel Dänzer <span dir="ltr"><<a href="mailto:michel@daenzer.net" target="_blank">michel@daenzer.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2018-07-06 04:23 PM, Carsten Behling wrote:<br>
> <br>
> [...] I get e.g. negative cursor postion in x/y if the HW cursor buffer<br>
<span class="">> is moved in display rotation of 180 degrees towards the lower/right corner.<br>
> <br>
> The cursor move is ignored in this case:<br>
> <br>
> static void<br>
> drmmode_set_cursor_position(<wbr>xf86CrtcPtr crtc, int x, int y)<br>
> {<br>
> drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;<br>
> drmmode_ptr drmmode = drmmode_crtc->drmmode;<br>
> <br>
> drmModeMoveCursor(drmmode->fd, drmmode_crtc->mode_crtc->crtc_<wbr>id, x, y);<br>
> }<br>
> <br>
> So the upper left corner of the default cursor arrow never pointed to lower<br>
> right positions that are beyond screen positions 64/64<br>
> (Note: on 180 degree rotation we are on the upper left corner of the<br>
> framebuffer).<br>
> <br>
> So my question is :<br>
> <br>
> Where should that be fixed?:<br>
> <br>
> a) Should my DRM driver allow to move the HW cursor buffer partially<br>
> outside the frambuffer?<br>
<br>
</span>Yes. That's how this is working with other drivers.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Earthling Michel Dänzer | <a href="http://www.amd.com" rel="noreferrer" target="_blank">http://www.amd.com</a><br>
Libre software enthusiast | Mesa and X developer<br>
</font></span></blockquote></div><br></div>