diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-01-19 15:04:42 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-01-19 15:04:42 +0000 |
commit | 417ae1476de3ae9689a374d70565f41b3474641e (patch) | |
tree | 921c456086446663328350370e2a898fd529cfbb /drivers/gpu/drm/i915/intel_drv.h | |
parent | 633f2ea26665d37bb3c8ae30799aa14988622653 (diff) | |
download | talos-op-linux-417ae1476de3ae9689a374d70565f41b3474641e.tar.gz talos-op-linux-417ae1476de3ae9689a374d70565f41b3474641e.zip |
drm/i915: Include TLB miss latency in g4x watermark computations
Reports of FIFO underruns are still persisting on gm45.
References: https://bugs.freedesktop.org/show_bug.cgi?id=27589
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_drv.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index 74db2557d644..5ce4a5f13de1 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h @@ -217,6 +217,13 @@ intel_get_crtc_for_pipe(struct drm_device *dev, int pipe) return dev_priv->pipe_to_crtc_mapping[pipe]; } +static inline struct drm_crtc * +intel_get_crtc_for_plane(struct drm_device *dev, int plane) +{ + struct drm_i915_private *dev_priv = dev->dev_private; + return dev_priv->plane_to_crtc_mapping[plane]; +} + struct intel_unpin_work { struct work_struct work; struct drm_device *dev; |