diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-10-15 13:55:29 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-10-16 07:32:10 -0400 |
commit | b2c88f5b1dea77b57759387728917a124eb1c098 (patch) | |
tree | b82258528bfb2cbb7b2ff03cced9ba30e818a30c /drivers/gpu/drm/i915/i915_drv.h | |
parent | 926321d503406d1fefb2fae9651beca14160529a (diff) |
drm/i915: Keep the CRC values into a circular buffer
There are a few good properties to a circular buffer, for instance it
has a number of entries (before we were always dumping the full buffer).
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index bfaaaaee8a5b..a29a4a1d300a 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -1230,11 +1230,11 @@ struct intel_pipe_crc_entry { | |||
1230 | uint32_t crc[5]; | 1230 | uint32_t crc[5]; |
1231 | }; | 1231 | }; |
1232 | 1232 | ||
1233 | #define INTEL_PIPE_CRC_ENTRIES_NR 200 | 1233 | #define INTEL_PIPE_CRC_ENTRIES_NR 128 |
1234 | struct intel_pipe_crc { | 1234 | struct intel_pipe_crc { |
1235 | struct intel_pipe_crc_entry entries[INTEL_PIPE_CRC_ENTRIES_NR]; | 1235 | struct intel_pipe_crc_entry entries[INTEL_PIPE_CRC_ENTRIES_NR]; |
1236 | enum intel_pipe_crc_source source; | 1236 | enum intel_pipe_crc_source source; |
1237 | atomic_t slot; | 1237 | atomic_t head, tail; |
1238 | }; | 1238 | }; |
1239 | 1239 | ||
1240 | typedef struct drm_i915_private { | 1240 | typedef struct drm_i915_private { |