aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_stolen.c
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2013-06-27 19:30:21 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-07-01 05:28:00 -0400
commit5c3fe8b03ea6eb61617edb390d51c08609a495f7 (patch)
tree87f5310176d7b0d6b1e3338cc17087b3efc75fbd /drivers/gpu/drm/i915/i915_gem_stolen.c
parentb2f21b4dfdd1e7396a99312c35092c8bb486a699 (diff)
drm/i915: Move fbc members out of line
Signed-off-by: Ben Widawsky <ben@bwidawsk.net> [danvet: Resolve conflict with Damien's FBC_CHIP_DEFAULT no fbc reason.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_stolen.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_stolen.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_stolen.c b/drivers/gpu/drm/i915/i915_gem_stolen.c
index f713294618fe..8e023447b7eb 100644
--- a/drivers/gpu/drm/i915/i915_gem_stolen.c
+++ b/drivers/gpu/drm/i915/i915_gem_stolen.c
@@ -120,7 +120,7 @@ static int i915_setup_compression(struct drm_device *dev, int size)
120 if (!compressed_llb) 120 if (!compressed_llb)
121 goto err_fb; 121 goto err_fb;
122 122
123 dev_priv->compressed_llb = compressed_llb; 123 dev_priv->fbc.compressed_llb = compressed_llb;
124 124
125 I915_WRITE(FBC_CFB_BASE, 125 I915_WRITE(FBC_CFB_BASE,
126 dev_priv->mm.stolen_base + compressed_fb->start); 126 dev_priv->mm.stolen_base + compressed_fb->start);
@@ -128,8 +128,8 @@ static int i915_setup_compression(struct drm_device *dev, int size)
128 dev_priv->mm.stolen_base + compressed_llb->start); 128 dev_priv->mm.stolen_base + compressed_llb->start);
129 } 129 }
130 130
131 dev_priv->compressed_fb = compressed_fb; 131 dev_priv->fbc.compressed_fb = compressed_fb;
132 dev_priv->cfb_size = size; 132 dev_priv->fbc.size = size;
133 133
134 DRM_DEBUG_KMS("reserved %d bytes of contiguous stolen space for FBC\n", 134 DRM_DEBUG_KMS("reserved %d bytes of contiguous stolen space for FBC\n",
135 size); 135 size);
@@ -150,7 +150,7 @@ int i915_gem_stolen_setup_compression(struct drm_device *dev, int size)
150 if (dev_priv->mm.stolen_base == 0) 150 if (dev_priv->mm.stolen_base == 0)
151 return -ENODEV; 151 return -ENODEV;
152 152
153 if (size < dev_priv->cfb_size) 153 if (size < dev_priv->fbc.size)
154 return 0; 154 return 0;
155 155
156 /* Release any current block */ 156 /* Release any current block */
@@ -163,16 +163,16 @@ void i915_gem_stolen_cleanup_compression(struct drm_device *dev)
163{ 163{
164 struct drm_i915_private *dev_priv = dev->dev_private; 164 struct drm_i915_private *dev_priv = dev->dev_private;
165 165
166 if (dev_priv->cfb_size == 0) 166 if (dev_priv->fbc.size == 0)
167 return; 167 return;
168 168
169 if (dev_priv->compressed_fb) 169 if (dev_priv->fbc.compressed_fb)
170 drm_mm_put_block(dev_priv->compressed_fb); 170 drm_mm_put_block(dev_priv->fbc.compressed_fb);
171 171
172 if (dev_priv->compressed_llb) 172 if (dev_priv->fbc.compressed_llb)
173 drm_mm_put_block(dev_priv->compressed_llb); 173 drm_mm_put_block(dev_priv->fbc.compressed_llb);
174 174
175 dev_priv->cfb_size = 0; 175 dev_priv->fbc.size = 0;
176} 176}
177 177
178void i915_gem_cleanup_stolen(struct drm_device *dev) 178void i915_gem_cleanup_stolen(struct drm_device *dev)