diff options
author | Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com> | 2021-07-28 10:25:44 +0530 |
---|---|---|
committer | Swati Sharma <swati2.sharma@intel.com> | 2021-07-30 11:32:01 +0530 |
commit | 6135b9cc319ed965e3aafb5b2ae2abf4762a06b2 (patch) | |
tree | b51c51ccafe083bcccedbcc4dbff6ba7986c845d /tests/kms_plane_alpha_blend.c | |
parent | bb1c96b29234f86cd71d9cbd019aafada9097f24 (diff) |
tests/kms_plane_alpha_blend: Align width to 256B
Some display resolutions like 1366x768 6bpc which does not
have 64B aligned width are creating crc mismatch in
kms_plane_alpha_blend test on Intel platforms.
Also having different alignment requirement by different drivers,
256B aligned width should work for all drm drivers.
amdgpu and radeon, amdgpu_align_pitch: 256B
armada, armada_pitch: 128B
exynos_drm_gem_dumb_create: No alignment required
drm_gem_shmem_dumb_create: 8B
drm_gem_vram_fill_create_dumb: 8B
Thus 256B covers everything we see in the kernel drm drivers.
Signed-off-by: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com>
Reviewed-by: Swati Sharma <swati2.sharma@intel.com
Diffstat (limited to 'tests/kms_plane_alpha_blend.c')
-rw-r--r-- | tests/kms_plane_alpha_blend.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/kms_plane_alpha_blend.c b/tests/kms_plane_alpha_blend.c index 8616169e..cb8f9289 100644 --- a/tests/kms_plane_alpha_blend.c +++ b/tests/kms_plane_alpha_blend.c @@ -168,6 +168,7 @@ static void prepare_crtc(data_t *data, igt_output_t *output, enum pipe pipe) w = mode->hdisplay; h = mode->vdisplay; + w = ALIGN(w, 256); /* recreate all fbs if incompatible */ if (data->xrgb_fb.width != w || data->xrgb_fb.height != h) { cairo_t *cr; |