<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'DejaVu Sans'; font-size:8pt; font-weight:400; font-style:normal;">On piątek 19 czerwca 2009 14:21:08 Barry Scott wrote:<br>
> Łukasz Kuryło wrote:<br>
> > Friday 19 of June 2009 13:07:43 Łukasz Kuryło napisał(a):<br>
> > > On czwartek 18 czerwca 2009 18:04:35 Barry Scott wrote:<br>
> > > > Łukasz Kuryło wrote:<br>
> > > > > On środa 17 czerwca 2009 18:52:48 you wrote:<br>
> > > > > > Łukasz Kuryło wrote:<br>
> > > > > > > Wednesday 17 of June 2009 18:18:33 Barry Scott napisał(a):<br>
> > > > > > > > The attached patch fixes the problems I was seeing with XV <br>
> > when<br>
> > > > > rotated.<br>
> > > > > > > ><br>
> > > > > > > > The box is in screen coordinates and must be transformed <br>
> > into crtc<br>
> > > > > > > > coordinates<br>
> > > > > > > > to calculate the correct scan line numbers.<br>
> > > > > > > ><br>
> > > > > > > > Barry<br>
> > > > > > > ><br>
> > > > > > > ><br>
> > > > > > ><br>
> > > > > > ><br>
> > > > > > > Hi Barry,<br>
> > > > > > > another issue is multiple monitor configuration.<br>
> > > > > > > What if box is not entirely in one crtc.<br>
> > > > > > > Are those<br>
> > > > > > > y1 = box_in_crtc_coordinates.y1 - crtc->y;<br>
> > > > > > > y2 = box_in_crtc_coordinates.y2 - crtc->y;<br>
> > > > > > > correct then?<br>
> > > > > > If it is a problem then the original and patched versions have <br>
> > the same<br>
> > > > > > problem.<br>
> > > > > ><br>
> > > > > > Barry<br>
> > > > > ><br>
> > > > > ><br>
> > > > > Barry have you checked that patch?<br>
> > > > Yes I'm running with it applied.<br>
> > > > > Does it work when screen is inverted (upside down),<br>
> > > > Yes it works for all four rotations.<br>
> > > > > also isn't crtc->y in screen coordinates as well?<br>
> > > > I don't know, one of the intel developers would be best to comment <br>
> > on that.<br>
> > > > The value while I was testing was always 0.<br>
> > > ><br>
> > > > Did you mean to reply off list?<br>
> > > ><br>
> > > > Barry<br>
> > > ><br>
> > > ><br>
> > ><br>
> > > Hi Barry,<br>
> > > in commit<br>
> > > e5bfa2702a31566fa94fa75f7289d7cbe9825420<br>
> > ><br>
> > > I've added clipping of scanlines I think in i830_video it would be <br>
> > useful as well. But what bothers me is crtc->y value. As long as you <br>
> > have one screen crtc->y is 0 and thats not a problem but please have a <br>
> > look at this odg file.<br>
> > ><br>
> > > I hit reply instead of repry to list.<br>
> > ><br>
> ><br>
> ><br>
> > Or maybe after transformation to crtc coordinates, crtc->y is unnecesary?<br>
> We need someone that knows what crtc->y is used for to comment.<br>
> Then fixing the code to match will be simple.<br>
> <br>
> Barry<br>
> <br>
> <br>
I know what crtc->y is used for. Its upper left corner y coordinate of the area covered by given crtc. If screen is in normal position this is index of first scan line of that display. But if it's rotated + or - 90 it's irrelevant (must use x coordinate then). If it's inverted it's index of last scan line of given crtc. </p></body></html>