From: Ilija Hadzic Subject: Re: [PATCH] xf86-video-ati: vblank wait on crtc > 1 Date: Tue, 22 Mar 2011 09:53:59 -0500 (CDT) Message-ID: References: <1300793415.3476.40.camel@thor.local> <1300803833.3522.18.camel@thor.local> Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-869693583-1300805639=:16791" Return-path: Received: from ihemail1.lucent.com (ihemail1.lucent.com [135.245.0.33]) by gabe.freedesktop.org (Postfix) with ESMTP id ACC829E819 for ; Tue, 22 Mar 2011 07:54:04 -0700 (PDT) In-Reply-To: <1300803833.3522.18.camel@thor.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Michel =?ISO-8859-1?Q?D=E4nzer?= Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---559023410-869693583-1300805639=:16791 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 22 Mar 2011, Michel [ISO-8859-1] D=E4nzer wrote: > > In the post I referenced above, you said: > >> [...] I'll add a hook to the DDX to check the version and not issue >> the ioctl at all if it is requested on a higher CRTC. I think that's >> better than falling back to the old style and issuing the system call >> on (potentially wrong) CRTC #1 because that can block the application >> (and I'd rather see it proceed without attempting vblank >> synchronization, then block). > > Which made sense then and still does now, in contrast to trying to > preserve ill-defined broken behaviour. > =2E.. and then as I started to write code I changed my mind (am I forgiven = ?=20 ;-) ) because I realized that three things would happen: a) just not issuing the ioctl will cause an application to "firehose"=20 the kernel with rendering commands and potentially impact the performance= =20 of other processes. b) both behaviors (not issuing the ioctl and thus causing application to=20 keep coming back after glxSwap or just blocking the application on bad CRTC) are broken anyway so introducing a wider variety of=20 broken behaviors was probably worse as far as user's experience is=20 concerned. c) the change the way I made it is safer wrt. introducing new bugs; you=20 can't as easily fake out the sequence number and timestamp as you may=20 think. I explained all of the above in my followup posts and although I didn't=20 want to repeat them now, I now find myself repeating it anyway ;-) > >>>> +=09} else { >>>> +=09 if (cap_value) { >>>> +=09=09info->high_crtc_works =3D TRUE; >>>> +=09 } else { >>>> +=09=09xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "Your kernel does not h= andle VBLANKs on CRTC>1\n"); >>>> +=09=09info->high_crtc_works =3D FALSE; >>> >>> Is there any point in having two different warning messages? I think >>> 'CRTC > 1' could use spaces. >> >> There is a point: one warning tells you that the kernel is old and you >> have to upgrade. The other warning tells you that the kernel is new enou= gh >> (it has the GET_CAP ioctl), but for some other reason refused to handle >> high-crtcs (which at this time doesn't exist, but it should not be the >> reason to "destroy" the information). > > Fair enough. > > >> I bet the change on my desk in my office that if I had the blankspace, >> someone would have responded with an opposite suggestion ;-). > > That's bold of you. I stand by my request. > Next time I touch this file, I'll "smuggle" the blankspace, but let's say= =20 that this is a rock bottom of the priority list (just as fixing grammar,=20 style and spelling in any message would be ... and there is plenty). -- Ilija ---559023410-869693583-1300805639=:16791 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel ---559023410-869693583-1300805639=:16791--