drm/i915: Change plane_config to store a tiling_mode

Rather than having "tiled" meaning "is it X-tiled?" convert the field to
explicitely store the tiling mode. The code doesn't have to change much
as 1 is conveniently I915_TILING_X.

This is to accommodate future changes around tiling modes and scannout
buffers.

v2: Rebase on top of Ander's "Make intel_crtc->config a pointer"

Reviewed-By: Tvrtko Ursulin <tvrtko.ursulin@intel.com> (v1)
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Damien Lespiau
2015-01-20 12:51:44 +00:00
committed by Daniel Vetter
parent 38c2352716
commit 49af449b45
3 changed files with 10 additions and 11 deletions

View File

@@ -258,7 +258,7 @@ struct intel_plane_state {
};
struct intel_plane_config {
bool tiled;
unsigned int tiling;
int size;
u32 base;
};