OSDN Git Service

Revert "intel: use throttle ioctl for throttling"
authorEric Anholt <eric@anholt.net>
Mon, 25 Apr 2011 17:36:29 +0000 (10:36 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 27 Apr 2011 16:48:26 +0000 (09:48 -0700)
commitaa3e1c25d3e4fc7e79236c717deaa838182e68c9
tree33634ffb284e12e38171e6c287a9e293f70299bf
parent66d95919d55098b96281e5144b6839627ad3d053
Revert "intel: use throttle ioctl for throttling"

This reverts commit 50ade6ea697953bb17e3ca7210515fbd0411cd1e.

Fixes jerky rendering again on apps that don't block on the GPU per
frame and are GPU bound (e.g. 3DMMES on Ironlake).  The whole point of
this complicated throttle scheme is to wait on frame n-1 to have
started rendering before starting frame n's rendering.  Otherwise, the
GPU-bound app will race ahead and call the GL to draw many
nearly-identical frames, then >0ms later get stuck waiting for them
(all dispatched at about the same time) to retire, then render a new
batch of nearly-identical frames.
src/mesa/drivers/dri/intel/intel_batchbuffer.c
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_context.h