[igt-dev] [PATCH i-g-t] tests/kms_plane_alpha_blend: Use alpha for primary plane for coverage-vs-premult-vs-constant
Vidya Srinivas
vidya.srinivas at intel.com
Sat Jun 19 17:07:41 UTC 2021
Few Gen11 systems report CRC mismatch with higher alpha values if
primary plane with gray is enabled. So in order to get the coverage vs. premult vs. constant
crc to match use alpha buffer for primary plane as well in coverage-vs-premult-vs-constant.
Signed-off-by: Vidya Srinivas <vidya.srinivas at intel.com>
---
tests/kms_plane_alpha_blend.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/kms_plane_alpha_blend.c b/tests/kms_plane_alpha_blend.c
index a37cb27c7d62..52c273c71dad 100644
--- a/tests/kms_plane_alpha_blend.c
+++ b/tests/kms_plane_alpha_blend.c
@@ -449,7 +449,7 @@ static void coverage_premult_constant(data_t *data, enum pipe pipe, igt_plane_t
/* Set a background color on the primary fb for testing */
if (plane->type != DRM_PLANE_TYPE_PRIMARY)
- igt_plane_set_fb(igt_pipe_get_plane_type(&display->pipes[pipe], DRM_PLANE_TYPE_PRIMARY), &data->gray_fb);
+ igt_plane_set_fb(igt_pipe_get_plane_type(&display->pipes[pipe], DRM_PLANE_TYPE_PRIMARY), &data->argb_fb_cov_7e);
igt_plane_set_prop_enum(plane, IGT_PLANE_PIXEL_BLEND_MODE, "Coverage");
igt_plane_set_fb(plane, &data->argb_fb_cov_7e);
--
2.7.4
More information about the igt-dev
mailing list