diff options
author | Bob Paauwe <bob.j.paauwe@intel.com> | 2020-04-07 14:51:46 -0700 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2020-04-17 09:28:37 +0300 |
commit | a4258366641b4f895f5cb635a84790e8f5ee5d2e (patch) | |
tree | cf38df138d7ff9b4e5800872ab979c60be80945f /lib/igt_fb.c | |
parent | cb20ba774a0a12ff4e4787843171a7f4c3f77062 (diff) |
lib/color_encoding: Fix up support for XYUV format.
Add XYUV8888 to the list of DRM Formats to test.
Also fix the byte order for the format.
Signed-off-by: Bob Paauwe <bob.j.paauwe@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'lib/igt_fb.c')
-rw-r--r-- | lib/igt_fb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/igt_fb.c b/lib/igt_fb.c index 0fb8db12..5ed586e7 100644 --- a/lib/igt_fb.c +++ b/lib/igt_fb.c @@ -2721,9 +2721,9 @@ static void get_yuv_parameters(struct igt_fb *fb, struct yuv_parameters *params) break; case DRM_FORMAT_XYUV8888: - params->y_offset = fb->offsets[0] + 1; - params->u_offset = fb->offsets[0] + 2; - params->v_offset = fb->offsets[0] + 3; + params->y_offset = fb->offsets[0] + 2; + params->u_offset = fb->offsets[0] + 1; + params->v_offset = fb->offsets[0] + 0; break; } } |