aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_drv.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-12-17 22:14:59 -0500
committerDave Airlie <airlied@linux.ie>2009-01-07 11:49:43 +1000
commit3f8bc370ac679a5fe5c098f30d3cf8e80f62a9f8 (patch)
treee8031b491acc957da7c3e4d99688cf755d7ecfba /drivers/gpu/drm/i915/intel_drv.h
parentdrm/i915: Don't allow objects to get bound while VT switched. (diff)
downloadlinux-dev-3f8bc370ac679a5fe5c098f30d3cf8e80f62a9f8.tar.xz
linux-dev-3f8bc370ac679a5fe5c098f30d3cf8e80f62a9f8.zip
drm/i915: Pin cursor bo and unpin old bo when setting cursor.
We also didn't track the cursor bo before and would leak a reference when the cursor image was change. Signed-off-by: Kristian Høgsberg <krh@redhat.com> Signed-off-by: Eric Anholt <eric@anholt.net> Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r--drivers/gpu/drm/i915/intel_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index 407edd5bf582..94981ee7b8bd 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -88,6 +88,7 @@ struct intel_crtc {
struct drm_crtc base;
int pipe;
int plane;
+ struct drm_gem_object *cursor_bo;
uint32_t cursor_addr;
u8 lut_r[256], lut_g[256], lut_b[256];
int dpms_mode;