diff options
author | Maxime Ripard <maxime.ripard@bootlin.com> | 2019-01-25 15:58:31 +0100 |
---|---|---|
committer | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2019-02-05 13:51:23 +0100 |
commit | 6112f956cf4c6736967eb40eaa7224b33b69a03d (patch) | |
tree | 1e54f9b9c7fd32fe61bca707960d36927ecfb25a | |
parent | 915c58a8967a27eeca94a9dfc3a7ee3974f80249 (diff) |
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 <paul.kocialkowski@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
-rw-r--r-- | lib/igt_fb.c | 6 |
1 files changed, 5 insertions, 1 deletions
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: |