drm/i915: add fence register management to execbuf
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 27 Jan 2009 01:10:45 +0000 (17:10 -0800)
committerDave Airlie <airlied@linux.ie>
Sun, 8 Feb 2009 11:38:02 +0000 (21:38 +1000)
Adds code to set up fence registers at execbuf time on pre-965 chips as
necessary.  Also fixes up a few bugs in the pre-965 tile register support
(get_order != ffs).  The number of fences available to the kernel defaults
to the hw limit minus 3 (for legacy X front/back/depth), but a new parameter
allows userspace to override that as needed.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@linux.ie>

No differences found