Commit d0975646 authored by Maarten Lankhorst's avatar Maarten Lankhorst

tests: Add kms plane alpha blending test, v2.

Add a few tests to test various blending modes.

Some of the tests will skip if pixel mode alpha cannot be enabled
with plane alpha at the same time. This is for mali-dp. I didn't
test on that platform, but tested with the same check on i915.

The tests won't pass i915 on pre-gen11 hw. i915 has small rounding
errors with 0xff and 0x00 alpha, which gives CRC mismatches.

Changes since v1:
- Send the correct version, with the skips for mali-dp in place.
Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ville Syrjälä's avatarVille Syrjälä <ville.syrjala@linux.intel.com>
parent 7f41adfb
......@@ -175,6 +175,8 @@ const char * const igt_plane_prop_names[IGT_NUM_PLANE_PROPS] = {
[IGT_PLANE_IN_FORMATS] = "IN_FORMATS",
[IGT_PLANE_COLOR_ENCODING] = "COLOR_ENCODING",
[IGT_PLANE_COLOR_RANGE] = "COLOR_RANGE",
[IGT_PLANE_PIXEL_BLEND_MODE] = "pixel blend mode",
[IGT_PLANE_ALPHA] = "alpha",
};
const char * const igt_crtc_prop_names[IGT_NUM_CRTC_PROPS] = {
......
......@@ -266,6 +266,8 @@ enum igt_atomic_plane_properties {
IGT_PLANE_IN_FORMATS,
IGT_PLANE_COLOR_ENCODING,
IGT_PLANE_COLOR_RANGE,
IGT_PLANE_PIXEL_BLEND_MODE,
IGT_PLANE_ALPHA,
IGT_NUM_PLANE_PROPS
};
......
......@@ -193,6 +193,7 @@ TESTS_progs = \
kms_pipe_b_c_ivb \
kms_pipe_crc_basic \
kms_plane \
kms_plane_alpha_blend \
kms_plane_lowres \
kms_plane_multiple \
kms_plane_scaling \
......
This diff is collapsed.
......@@ -168,6 +168,7 @@ test_progs = [
'kms_pipe_b_c_ivb',
'kms_pipe_crc_basic',
'kms_plane',
'kms_plane_alpha_blend',
'kms_plane_lowres',
'kms_plane_multiple',
'kms_plane_scaling',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment