[igt-dev] [PATCH i-g-t] tests/kms_available_modes_crc: Fix handling of unknown single plane modes
Juha-Pekka Heikkila
juhapekka.heikkila at gmail.com
Sat Nov 3 11:28:52 UTC 2018
Fix creation of gem buffer so that used bpp will always have value other
than 0.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106701
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
---
tests/kms_available_modes_crc.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/kms_available_modes_crc.c b/tests/kms_available_modes_crc.c
index 45a4775..006c2db 100644
--- a/tests/kms_available_modes_crc.c
+++ b/tests/kms_available_modes_crc.c
@@ -164,7 +164,7 @@ static const struct {
#ifdef DRM_FORMAT_P016
{ DRM_FORMAT_P016, 0, P010, 0x8000eb00},
#endif
- { 0, 0, 0, 0 }
+ { 0, 0, SKIP4, 0 }
};
/*
@@ -232,13 +232,13 @@ static bool fill_in_fb(data_t *data, igt_output_t *output, igt_plane_t *plane,
writesize = data->size;
break;
}
- igt_info("Format %s CRC comparison skipped by design.\n",
- (char*)&fillers[i].fourcc);
+ igt_info("Format %.4s CRC comparison skipped by design.\n",
+ (char*)&format);
return false;
default:
- igt_info("Unsupported mode for test %s\n",
- (char*)&fillers[i].fourcc);
+ igt_info("Unsupported mode for test %.4s\n",
+ (char*)&format);
return false;
}
--
2.7.4
More information about the igt-dev
mailing list