diff options
author | Mika Kahola <mika.kahola@intel.com> | 2020-02-13 11:18:55 +0200 |
---|---|---|
committer | Mika Kahola <mika.kahola@intel.com> | 2020-02-17 13:20:33 +0200 |
commit | 21e523814d692978d6d04ba85eadd67fcbd88b7e (patch) | |
tree | a452a603ca9bb9823d2d76608e6e622a3d63e39b /lib/igt_fb.h | |
parent | c46bae259d427f53fcfcd5f05de0181a9e82d6fe (diff) |
tests/kms_ccs: Use correct CCS plane for semiplanar formats
In case with semiplanar formats, we should use correct CCS plane
when these formats are under a test.
v2: Correct plane for bad ccs handle test (Imre)
Added documentation (Petri)
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Diffstat (limited to 'lib/igt_fb.h')
-rw-r--r-- | lib/igt_fb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_fb.h b/lib/igt_fb.h index 5ed9e35a..587f7a44 100644 --- a/lib/igt_fb.h +++ b/lib/igt_fb.h @@ -201,6 +201,7 @@ uint32_t igt_drm_format_to_bpp(uint32_t drm_format); const char *igt_format_str(uint32_t drm_format); bool igt_fb_supported_format(uint32_t drm_format); bool igt_format_is_yuv(uint32_t drm_format); +bool igt_format_is_yuv_semiplanar(uint32_t format); bool igt_format_is_fp16(uint32_t drm_format); int igt_format_plane_bpp(uint32_t drm_format, int plane); void igt_format_array_fill(uint32_t **formats_array, unsigned int *count, |