diff options
author | Mark Yacoub <markyacoub@google.com> | 2021-07-01 13:44:24 -0400 |
---|---|---|
committer | Arkadiusz Hiler <arek@hiler.eu> | 2021-07-02 00:02:21 +0300 |
commit | e6d999130cabcca3104b6584ce01c03a9ce59359 (patch) | |
tree | 4f0c767afa958659eda18997a5db894a4534c5cd /tests/kms_addfb_basic.c | |
parent | 3f5f758f9528fcd2855a254f6bddc42b603521b3 (diff) |
kms_addfb_basic: Check for AMDGPU and MSM bad pitch.
[Why]
AMDGPU and MSM devices have a known errno when it fails coorectly for
bad pitches.
[How]
Assert `errno` to `EINVAL` for both AMDGPU and MSM as well.
Signed-off-by: Mark Yacoub <markyacoub@chromium.org>
Reviewed-by: Arkadiusz Hiler <arek@hiler.eu>
Diffstat (limited to 'tests/kms_addfb_basic.c')
-rw-r--r-- | tests/kms_addfb_basic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_addfb_basic.c b/tests/kms_addfb_basic.c index 85c14be5..91fb6ac9 100644 --- a/tests/kms_addfb_basic.c +++ b/tests/kms_addfb_basic.c @@ -310,7 +310,7 @@ static void pitch_tests(int fd) f.pitches[0] = bad_pitches[i]; igt_assert_eq(igt_ioctl(fd, DRM_IOCTL_MODE_ADDFB2, &f), -1); igt_assert(errno != 0); - if (is_i915_device(fd)) { + if (is_i915_device(fd) || is_amdgpu_device(fd) || is_msm_device(fd)) { igt_assert_eq(errno, EINVAL); } else if (is_nouveau_device(fd)) { if (bad_pitches[i] > 4 * 1024) |