[PATCH 09/10] drm/i915: wait render timeout ioctl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 21 Apr 2012 09:12:17 -0700, Ben Widawsky <ben at bwidawsk.net> wrote:
> On Sat, 21 Apr 2012 10:41:55 +0100
> Chris Wilson <chris at chris-wilson.co.uk> wrote:
> > I think this whole interface is a stop-gap solution for pollable sync
> > objects without a clear use case. Do we have a spec for a feature
> > wishing to build upon this interface?
> 
> Good point. This is primarily for glClientWaitSync. I will update the
> commit message with this information.

I read through the ARB_sync spec and this interface does seem to be a
good match for that. A slight sour test from that spec being open-ended
which might mean that we need to revise the interface in future.
However, I did realise one blindingly obvious use-case:

  drm_intel_gem_bo_wait_wait_rendering();

Currently this is used by Mesa to do its client throttling, and in
consequence also blocks X. i915_wait_ioctl() will allow mesa to only
block itself and so help reduce interface stutters, even more important
with multiple GL clients.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux