summaryrefslogtreecommitdiff
path: root/linux-core/i915_drv.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-06-13 12:06:13 -0700
committerKeith Packard <keithp@keithp.com>2008-06-13 14:29:46 -0700
commitced9ebf64543b4d64a38feee3293040af953acc0 (patch)
treecb4027ab95b482f6d8840eedf6c5559cb5578143 /linux-core/i915_drv.c
parent6b2cba1ecc5f9f289b5d91e229b7f7b0999bee5b (diff)
[intel-gem] throttle based on frames rather than time. Reduces jitter.
Record the last execbuffer sequence for each client. Record that sequence in the throttle ioctl as the 'throttle sequence'. Wait for the last throttle sequence in the throttle ioctl.
Diffstat (limited to 'linux-core/i915_drv.c')
-rw-r--r--linux-core/i915_drv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-core/i915_drv.c b/linux-core/i915_drv.c
index 89f089b0..012ca822 100644
--- a/linux-core/i915_drv.c
+++ b/linux-core/i915_drv.c
@@ -561,6 +561,7 @@ static int i915_resume(struct drm_device *dev)
static int probe(struct pci_dev *pdev, const struct pci_device_id *ent);
static void remove(struct pci_dev *pdev);
+
static struct drm_driver driver = {
/* don't use mtrr's here, the Xserver or user space app should
* deal with them for intel hardware.
@@ -571,8 +572,10 @@ static struct drm_driver driver = {
.load = i915_driver_load,
.unload = i915_driver_unload,
.firstopen = i915_driver_firstopen,
+ .open = i915_driver_open,
.lastclose = i915_driver_lastclose,
.preclose = i915_driver_preclose,
+ .postclose = i915_driver_postclose,
.suspend = i915_suspend,
.resume = i915_resume,
.device_is_agp = i915_driver_device_is_agp,