diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2014-03-28 10:17:49 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-04-01 16:58:19 -0400 |
commit | 068be56163794c12e0f80d47cdcdb7e7487a05b6 (patch) | |
tree | 8430ed7b67eefa5942310b534ae6d09c6078fde2 /drivers/gpu/drm/i915/intel_drv.h | |
parent | 4e6e1a545f65739a8bb87c487e8e23389fdff1b4 (diff) |
drm/i915: Don't store the max cursor width/height in the crtc
Those values are, global, only used in one function and already stored
in mode_config.cursor_{width,height}.
As a result, this initialization code has been moved from the
crtc_init() function to the global modeset_init() one.
I also renamed CURSOR_{WIDTH,HEIGHT} to MAX_CURSOR_{WIDTH,HEIGHT} to be
more accurate about what these value really are.
Cc: Sagar Kamble <sagar.a.kamble@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Imre Deak <imre.deak@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_drv.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index c0146cd65f26..7b21571bb928 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h | |||
@@ -81,8 +81,8 @@ | |||
81 | /* Maximum cursor sizes */ | 81 | /* Maximum cursor sizes */ |
82 | #define GEN2_CURSOR_WIDTH 64 | 82 | #define GEN2_CURSOR_WIDTH 64 |
83 | #define GEN2_CURSOR_HEIGHT 64 | 83 | #define GEN2_CURSOR_HEIGHT 64 |
84 | #define CURSOR_WIDTH 256 | 84 | #define MAX_CURSOR_WIDTH 256 |
85 | #define CURSOR_HEIGHT 256 | 85 | #define MAX_CURSOR_HEIGHT 256 |
86 | 86 | ||
87 | #define INTEL_I2C_BUS_DVO 1 | 87 | #define INTEL_I2C_BUS_DVO 1 |
88 | #define INTEL_I2C_BUS_SDVO 2 | 88 | #define INTEL_I2C_BUS_SDVO 2 |
@@ -373,7 +373,6 @@ struct intel_crtc { | |||
373 | uint32_t cursor_addr; | 373 | uint32_t cursor_addr; |
374 | int16_t cursor_x, cursor_y; | 374 | int16_t cursor_x, cursor_y; |
375 | int16_t cursor_width, cursor_height; | 375 | int16_t cursor_width, cursor_height; |
376 | int16_t max_cursor_width, max_cursor_height; | ||
377 | bool cursor_visible; | 376 | bool cursor_visible; |
378 | 377 | ||
379 | struct intel_plane_config plane_config; | 378 | struct intel_plane_config plane_config; |