summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorBen Widawsky <benjamin.widawsky@intel.com>2014-06-19 12:06:10 -0700
committerJani Nikula <jani.nikula@intel.com>2014-07-03 11:27:08 +0300
commitc4213885cd01c6ec15f44b4d06d67790601e1731 (patch)
treebf98eb3b3213386fb2ad46be58ceab4ec2b087b1 /drivers/gpu/drm/i915/i915_drv.h
parent1267a26b22be45a09584ff016f33609e026a804c (diff)
downloadlwn-c4213885cd01c6ec15f44b4d06d67790601e1731.tar.gz
lwn-c4213885cd01c6ec15f44b4d06d67790601e1731.zip
drm/i915: Move compressed_fb to static allocation
We are already using the size to determine whether or not to free the object, so there is no functional change there. Almost everything else has changed to static allocations of the drm_mm_node too. Aside from bringing this inline with much of our other code, this makes error paths slightly simpler, which benefits the look of an upcoming patch. Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index aa849f2a0d9f..7aeaaaabf308 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -604,7 +604,7 @@ struct i915_fbc {
enum plane plane;
int y;
- struct drm_mm_node *compressed_fb;
+ struct drm_mm_node compressed_fb;
struct drm_mm_node *compressed_llb;
struct intel_fbc_work {