diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-10-01 17:48:12 +0200 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-10-02 10:40:42 +0200 |
commit | d0975646c50568e66e65b44b81d28232d059b94e (patch) | |
tree | c21568a44be37105c9a6a0ae747c3ad96b35b302 /lib | |
parent | 7f41adfbfd17027b71c332d6ae997f1364f73731 (diff) |
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: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/igt_kms.c | 2 | ||||
-rw-r--r-- | lib/igt_kms.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c index dedc8134..3894eeaf 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -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] = { diff --git a/lib/igt_kms.h b/lib/igt_kms.h index 73624399..2d862665 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -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 }; |