[PATCH V7 20/37] lib/igt_fb: Allow any non-planar format for igt_copy_fb
Alex Hung
alex.hung at amd.com
Wed Mar 26 23:35:52 UTC 2025
From: Harry Wentland <harry.wentland at amd.com>
The function is able to handle any non-planar format. It's been
tested for XRGB8888 and XRGB2101010 so far but should work
for a wider range of formats.
Signed-off-by: Harry Wentland <harry.wentland at amd.com>
---
lib/igt_fb.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 17d3fa0a9..479086376 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -2182,10 +2182,6 @@ unsigned int igt_copy_fb(int fd, struct igt_fb *src, struct igt_fb *fb)
if (src->num_planes != 1)
return -EINVAL;
- /* TODO expand for other formats */
- if (src->drm_format != DRM_FORMAT_XRGB8888)
- return -EINVAL;
-
fb_id = igt_create_fb(fd, src->width, src->height, src->drm_format,
src->modifier, fb);
--
2.43.0
More information about the igt-dev
mailing list