From 6112f956cf4c6736967eb40eaa7224b33b69a03d Mon Sep 17 00:00:00 2001 From: Maxime Ripard Date: Fri, 25 Jan 2019 15:58:31 +0100 Subject: igt: fb: Reduce tile size alignment for non intel platforms Aligning the width on 64 pixels only make sense on intel platforms, make sure to add a check against this. Reviewed-by: Paul Kocialkowski Signed-off-by: Maxime Ripard Reviewed-by: Lyude Paul --- lib/igt_fb.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/igt_fb.c b/lib/igt_fb.c index e23908e28..1a5c338ea 100644 --- a/lib/igt_fb.c +++ b/lib/igt_fb.c @@ -204,7 +204,11 @@ void igt_get_fb_tile_size(int fd, uint64_t tiling, int fb_bpp, { switch (tiling) { case LOCAL_DRM_FORMAT_MOD_NONE: - *width_ret = 64; + if (is_i915_device(fd)) + *width_ret = 64; + else + *width_ret = 1; + *height_ret = 1; break; case LOCAL_I915_FORMAT_MOD_X_TILED: -- cgit v1.2.3