OSDN Git Service

intel: use throttle ioctl for throttling
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 30 Dec 2010 21:47:39 +0000 (21:47 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 Feb 2011 12:59:37 +0000 (12:59 +0000)
commit50ade6ea697953bb17e3ca7210515fbd0411cd1e
tree558567a1c3be557b2af965cfdf106c5c1c6dd5b3
parent46131a824ffa3b658c822fd6cc543a5935773a6f
intel: use throttle ioctl for throttling

Rather than waiting on the first batch after the last swapbuffers to be
retired, call into the kernel to wait upon the retirement of any request
less than 20ms old. This has the twofold advantage of (a) not blocking
any other clients from utilizing the device whilst we wait and (b) we
attain higher throughput without overloading the system.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/intel/intel_batchbuffer.c
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_context.h