diff options
author | Bhanuprakash Modem <bhanuprakash.modem@intel.com> | 2022-03-16 16:45:02 +0530 |
---|---|---|
committer | Bhanuprakash Modem <bhanuprakash.modem@intel.com> | 2022-03-16 19:27:41 +0530 |
commit | 385d1ba1499a3d8ab81e40bc7b831783dd6006c5 (patch) | |
tree | 668c5b69c1f3be183df5635c2686c468aa4007a2 /tests/kms_color_helper.c | |
parent | ba8e4acab562bc02848b8dd0206c5957e5bba329 (diff) |
tests/kms_color: Add support for Deep-Color
Add new subtests to validate deep color.
V2:
* i915 needs atleast gen 11 to support deep-color
* Add connector name to dynamic subtest
V3:
* Fix the usage of "output"
V4:
* Set max_bpc prop to default before exiting the subtest
* Minor cleanups
Cc: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Diffstat (limited to 'tests/kms_color_helper.c')
-rw-r--r-- | tests/kms_color_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_color_helper.c b/tests/kms_color_helper.c index 3ea1c4bc..3ef124cd 100644 --- a/tests/kms_color_helper.c +++ b/tests/kms_color_helper.c @@ -206,7 +206,7 @@ struct drm_color_lut *coeffs_to_lut(data_t *data, uint32_t mask; if (is_i915_device(data->drm_fd)) - mask = ((1 << color_depth) - 1) << 8; + mask = ((1 << color_depth) - 1) << (16 - color_depth); else mask = max_value; |