diff options
author | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2019-01-24 16:30:48 +0100 |
---|---|---|
committer | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2019-02-26 09:45:54 +0100 |
commit | cf8438acbc57a1bac5cf64f1d8d0e584daf670c9 (patch) | |
tree | 4253e13778341ec4471ad666004aa358c95d8ab0 /lib/igt_fb.h | |
parent | 0f4aff46d2aab7a3172a89c32c2abab6e2dc7c06 (diff) |
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 <paul.kocialkowski@bootlin.com>
Reviewed-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'lib/igt_fb.h')
-rw-r--r-- | lib/igt_fb.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); |