From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Anholt Subject: Re: Fw: [Intel-gfx] [PATCH] intel: add a timed wait function Date: Wed, 30 May 2012 15:35:35 -0700 Message-ID: <8762bds3ew.fsf@eliezer.anholt.net> References: <20120527131654.4501e518@bwidawsk.net> <87vcjdk1mn.fsf@eliezer.anholt.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0478588162==" Return-path: In-Reply-To: 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: Daniel Vetter Cc: mesa-dev@lists.freedesktop.org, Ben Widawsky , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0478588162== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Wed, 30 May 2012 21:07:57 +0200, Daniel Vetter wrote: > On Wed, May 30, 2012 at 7:41 PM, Eric Anholt wrote: > > I guess GL_ALREADY_SIGNALED handling will be done using a check for > > bo_busy() before calling this. >=20 > I've just read through the mesa code and gl_already_signalled seems to > be handled already by core mesa code in _mesa_ClientWaitSync (if the > driver sets syncObject->Status correctly). So I guess the current > kernel code should work as-is and only the libdrm interface needs some > colour adjustments around the timeout parameter. Yeah, matches what I found. Did you want pointer for timeout in the userspace api? I don't feel strongly about it, I just didn't see a use. The equivalent API I could think of was select(), where apparently linux returns time unwaited, while "everyone else" doesn't. I don't see a strong recommendation either way from that. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAk/GoLcACgkQHUdvYGzw6vfdmwCfRVBGujddal9jZzYD4pUw9mdv pZEAn2S/RvQ4f/S/I/dwjg52nbUPn4vZ =KyMI -----END PGP SIGNATURE----- --=-=-=-- --===============0478588162== 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 --===============0478588162==--