[igt-dev] [PATCH i-g-t] tests/kms_plane_alpha_blend: Skip coverage-vs-premult-vs-none for 6bpc panels
Vidya Srinivas
vidya.srinivas at intel.com
Tue Jul 6 15:28:32 UTC 2021
Intel Gen11 6bpc panels are giving CRC mismatch in coverage-vs-premult-vs-none
6bpc panel has dithering ON and CRC test with dithering ON might result in
mismatch. Hence, skipping this subtest for 6bpc panels.
Credits-to: Uma Shankar <uma.shankar at intel.com>
Credits-to: Juha-pekka Heikkila <juha-pekka.heikkila at intel.com>
Signed-off-by: Vidya Srinivas <vidya.srinivas at intel.com>
---
tests/kms_plane_alpha_blend.c | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/tests/kms_plane_alpha_blend.c b/tests/kms_plane_alpha_blend.c
index a37cb27c7d62..7f9738545f0a 100644
--- a/tests/kms_plane_alpha_blend.c
+++ b/tests/kms_plane_alpha_blend.c
@@ -25,6 +25,7 @@
*/
#include "igt.h"
+#include "igt_edid.h"
IGT_TEST_DESCRIPTION("Test plane alpha and blending mode properties");
@@ -442,10 +443,38 @@ static void coverage_7efc(data_t *data, enum pipe pipe, igt_plane_t *plane)
igt_pipe_crc_stop(data->pipe_crc);
}
+uint8_t get_edid_bpc(data_t *data, igt_output_t *output)
+{
+ bool ok;
+ uint64_t edid_blob_id;
+ drmModePropertyBlobRes *edid_blob;
+ const struct edid *edid;
+
+ ok = kmstest_get_property(data->gfx_fd, output->id,
+ DRM_MODE_OBJECT_CONNECTOR, "EDID",
+ NULL, &edid_blob_id, NULL);
+
+ if (!ok || !edid_blob_id)
+ return 0;
+
+ edid_blob = drmModeGetPropertyBlob(data->gfx_fd, edid_blob_id);
+ igt_assert(edid_blob);
+
+ edid = (const struct edid *) edid_blob->data;
+ igt_assert(edid);
+
+ drmModeFreePropertyBlob(edid_blob);
+ return ((edid->input & 0x70) >> 3) + 4;
+}
+
static void coverage_premult_constant(data_t *data, enum pipe pipe, igt_plane_t *plane)
{
igt_display_t *display = &data->display;
igt_crc_t ref_crc = {}, crc = {};
+ igt_output_t *output = igt_get_single_output_for_pipe(display, pipe);
+ uint8_t current_bpc = get_edid_bpc(data, output);
+
+ igt_require(current_bpc >= 8);
/* Set a background color on the primary fb for testing */
if (plane->type != DRM_PLANE_TYPE_PRIMARY)
--
2.7.4
More information about the igt-dev
mailing list