[igt-dev] [PATCH i-g-t v2 02/13] igt: fb: Reduce tile size alignment for non intel platforms
Paul Kocialkowski
paul.kocialkowski at bootlin.com
Thu Jan 10 09:59:58 UTC 2019
On Tue, 2019-01-08 at 16:19 +0100, Maxime Ripard wrote:
> Aligning the width on 64 pixels only make sense on intel platforms, make
> sure to add a check against this.
>
> Signed-off-by: Maxime Ripard <maxime.ripard at bootlin.com>
Reviewed-by: Paul Kocialkowski <paul.kocialkowski at bootlin.com>
> ---
> 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 00db2ee57cad..6ab4e3039166 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:
--
Paul Kocialkowski, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
More information about the igt-dev
mailing list