Re: [Mesa-dev] Fw: [Intel-gfx] [PATCH] intel: add a timed wait function

2012-05-31 Thread Daniel Vetter
On Thu, May 31, 2012 at 12:35 AM, Eric Anholt wrote: > > 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" doe

Re: [Mesa-dev] Fw: [Intel-gfx] [PATCH] intel: add a timed wait function

2012-05-30 Thread Eric Anholt
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. > > I've just read through the mesa code and gl_already_signalled seems to > b

Re: [Mesa-dev] Fw: [Intel-gfx] [PATCH] intel: add a timed wait function

2012-05-30 Thread Daniel Vetter
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. 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 dr

Re: [Mesa-dev] Fw: [Intel-gfx] [PATCH] intel: add a timed wait function

2012-05-30 Thread Eric Anholt
On Sun, 27 May 2012 13:16:54 -0700, Ben Widawsky wrote: > diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c > index b776d2f..695a449 100644 > --- a/intel/intel_bufmgr_gem.c > +++ b/intel/intel_bufmgr_gem.c > @@ -1478,6 +1478,32 @@ drm_intel_gem_bo_wait_rendering(drm_intel_bo *bo) >

[Mesa-dev] Fw: [Intel-gfx] [PATCH] intel: add a timed wait function

2012-05-27 Thread Ben Widawsky
The kernel patches have now landed in Daniel's -next-queued tree. Begin forwarded message: Date: Fri, 11 May 2012 13:54:11 -0700 From: Ben Widawsky To: intel-...@lists.freedesktop.org Cc: Ben Widawsky Subject: [Intel-gfx] [PATCH] intel: add a timed wait function drm_intel_gem_bo_wait(bo, &tim