diff options
author | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2015-06-23 16:26:46 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-06-24 16:11:05 +0300 |
commit | 84fe03f7b2481b3a1cf4fb9db6e5df8d3698a4fe (patch) | |
tree | a82f5b7b7fce10f6ea30a209a61894c3439fc83b /drivers/gpu/drm/i915/i915_gem_gtt.h | |
parent | c9f8fd2d87eebb97b0ffdb3ff6cd90eb1c8e00bd (diff) | |
download | linux-84fe03f7b2481b3a1cf4fb9db6e5df8d3698a4fe.tar.xz |
drm/i915: Move rotated geometry calculations into the fill helper
This way data is available as soon as the view is passed into the call chain.
v2: Store size in bytes instead of pages under the appropriate name. (Chris Wilson)
v3: Use uint64_t instead of size_t. (Daniel Vetter)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> (v2)
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_gtt.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_gtt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.h b/drivers/gpu/drm/i915/i915_gem_gtt.h index 735f11986ea6..017ea308f8b4 100644 --- a/drivers/gpu/drm/i915/i915_gem_gtt.h +++ b/drivers/gpu/drm/i915/i915_gem_gtt.h @@ -126,6 +126,8 @@ struct intel_rotation_info { unsigned int pitch; uint32_t pixel_format; uint64_t fb_modifier; + unsigned int width_pages, height_pages; + uint64_t size; }; struct i915_ggtt_view { |