From cf8438acbc57a1bac5cf64f1d8d0e584daf670c9 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Thu, 24 Jan 2019 16:30:48 +0100 Subject: lib/igt_fb: Pass the modifier to igt_fb_convert helpers The modifier is part of how a frame is represented, so add it as an extra argument so that it can be specified when converting framebuffers. For now, only a linear modifier is supported. Signed-off-by: Paul Kocialkowski Reviewed-by: Maxime Ripard Reviewed-by: Lyude Paul --- lib/igt_fb.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/igt_fb.h') diff --git a/lib/igt_fb.h b/lib/igt_fb.h index 2c0a24d2..e1d885e2 100644 --- a/lib/igt_fb.h +++ b/lib/igt_fb.h @@ -138,9 +138,10 @@ unsigned int igt_create_stereo_fb(int drm_fd, drmModeModeInfo *mode, uint32_t format, uint64_t tiling); unsigned int igt_fb_convert_with_stride(struct igt_fb *dst, struct igt_fb *src, uint32_t dst_fourcc, + uint64_t dst_modifier, unsigned int stride); unsigned int igt_fb_convert(struct igt_fb *dst, struct igt_fb *src, - uint32_t dst_fourcc); + uint32_t dst_fourcc, uint64_t dst_modifier); void igt_remove_fb(int fd, struct igt_fb *fb); int igt_dirty_fb(int fd, struct igt_fb *fb); void *igt_fb_map_buffer(int fd, struct igt_fb *fb); -- cgit v1.2.3