summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-10-15 19:55:34 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-10-16 13:32:12 +0200
commite5f75aca193837c57a886c3fb83442fda88142e9 (patch)
tree9fb158abcc6c5decd52d77b4e5520e6bdbb40425 /drivers/gpu/drm/i915/i915_drv.h
parentdrm/i915: Empty the circular buffer when asked for a new source (diff)
downloadlinux-e5f75aca193837c57a886c3fb83442fda88142e9.tar.xz
linux-e5f75aca193837c57a886c3fb83442fda88142e9.zip
drm/i915: Dynamically allocate the CRC circular buffer
So we don't eat that memory when not needed. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to '')
-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 f8a36d038457..1faeaac5f9f3 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -1232,7 +1232,7 @@ struct intel_pipe_crc_entry {
#define INTEL_PIPE_CRC_ENTRIES_NR 128
struct intel_pipe_crc {
- struct intel_pipe_crc_entry entries[INTEL_PIPE_CRC_ENTRIES_NR];
+ struct intel_pipe_crc_entry *entries;
enum intel_pipe_crc_source source;
atomic_t head, tail;
};