summaryrefslogtreecommitdiff
path: root/tests/kms_plane_alpha_blend.c
diff options
context:
space:
mode:
authorVidya Srinivas <vidya.srinivas@intel.com>2021-07-22 20:37:00 +0530
committerKunal Joshi <kunal1.joshi@intel.com>2021-07-29 12:26:31 +0530
commit354638455597ac48ac433606b24b82a4d7b65d20 (patch)
tree898f7ec9bb4ee8adc13c525b4b113651af7e4e84 /tests/kms_plane_alpha_blend.c
parent5aca8c5429429dc80fc501219e43692e517f9c55 (diff)
Revert "tests/kms_plane_alpha_blend: Skip coverage-vs-premult-vs-none for 6bpc panels"
This reverts commit 3bf28f9dffd41b85c262d4e6664ffbdf5b7d9a93. Subtest coverage-premultiplied-constant was failing due to buffer alignment issue. It was not due to 6bpc. Hence this patch needs to be reverted. Signed-off-by: Vidya Srinivas <vidya.srinivas@intel.com> Reviewed-by : Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com>
Diffstat (limited to 'tests/kms_plane_alpha_blend.c')
-rw-r--r--tests/kms_plane_alpha_blend.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/tests/kms_plane_alpha_blend.c b/tests/kms_plane_alpha_blend.c
index 57bbda5d..8616169e 100644
--- a/tests/kms_plane_alpha_blend.c
+++ b/tests/kms_plane_alpha_blend.c
@@ -442,38 +442,6 @@ static void coverage_7efc(data_t *data, enum pipe pipe, igt_plane_t *plane)
igt_pipe_crc_stop(data->pipe_crc);
}
-static bool is_6bpc(igt_display_t *display, enum pipe pipe) {
- char buf[8192];
- char *str;
- bool ret;
- int debugfs_fd;
- drmModeConnector *c;
- igt_output_t *output = igt_get_single_output_for_pipe(display, pipe);
-
- if (!is_i915_device(display->drm_fd))
- return false;
-
- c = output->config.connector;
- if (c->connector_type != DRM_MODE_CONNECTOR_eDP ||
- c->connector_type != DRM_MODE_CONNECTOR_DSI)
- return false;
-
- debugfs_fd = igt_debugfs_dir(display->drm_fd);
- if (debugfs_fd < 0)
- return false;
-
- igt_debugfs_simple_read(debugfs_fd, "i915_display_info", buf, sizeof(buf));
-
- str = strstr(buf, "bpp=");
- if (str && (strncmp(str, "bpp=18", 6) == 0))
- ret = true;
- else
- ret = false;
-
- close(debugfs_fd);
- return ret;
-}
-
static void coverage_premult_constant(data_t *data, enum pipe pipe, igt_plane_t *plane)
{
igt_display_t *display = &data->display;
@@ -486,10 +454,6 @@ static void coverage_premult_constant(data_t *data, enum pipe pipe, igt_plane_t
igt_plane_set_prop_enum(plane, IGT_PLANE_PIXEL_BLEND_MODE, "Coverage");
igt_plane_set_fb(plane, &data->argb_fb_cov_7e);
igt_display_commit2(display, COMMIT_ATOMIC);
-
- /* 6bpc panels have dithering ON and CRC might fail, hence skip test */
- igt_require_f(!is_6bpc(display, pipe), "Test skipped for 6bpc panels\n");
-
igt_pipe_crc_start(data->pipe_crc);
igt_pipe_crc_get_single(data->pipe_crc, &ref_crc);