[igt-dev] [PATCH i-g-t 4/5] lib/fb: Add missing break in get_yuv_parameters
Petri Latvala
petri.latvala at intel.com
Thu Mar 7 11:24:26 UTC 2019
YVU420 and YVU422 will otherwise use offsets for P010 and pals.
Signed-off-by: Petri Latvala <petri.latvala at intel.com>
---
lib/igt_fb.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 9dca2a46..f49becbd 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -1841,6 +1841,8 @@ static void get_yuv_parameters(struct igt_fb *fb, struct yuv_parameters *params)
params->y_offset = fb->offsets[0];
params->u_offset = fb->offsets[2];
params->v_offset = fb->offsets[1];
+ break;
+
case DRM_FORMAT_P010:
case DRM_FORMAT_P012:
case DRM_FORMAT_P016:
--
2.19.1
More information about the igt-dev
mailing list