summaryrefslogtreecommitdiff
path: root/lib/igt_fb.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2015-12-17 01:39:31 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2016-01-08 15:01:59 +0200
commit5b113d323dde18ef3bbae2f57d613be4ab7eb267 (patch)
treecd2bc3a7b496e985bd856f2c341e553c3315ec71 /lib/igt_fb.h
parent7cb35109645e6495f67981b9930587c1ddfe4f90 (diff)
lib: Extract some common fb create+fill methods into helpers
Several tests do one or more of the following: * igt_create_fb() + igt_paint_test_pattern() * igt_create_color_fb() + igt_paint_test_pattern() * igt_create_fb() + igt_paint_image() Extract them into new helpers: igt_create_pattern_fb(), igt_create_color_pattern_fb(), igt_create_image_fb(). v2: Fix typos, and improve API docs (Thomas) Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'lib/igt_fb.h')
-rw-r--r--lib/igt_fb.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/igt_fb.h b/lib/igt_fb.h
index 37892b50..5cc8644d 100644
--- a/lib/igt_fb.h
+++ b/lib/igt_fb.h
@@ -80,6 +80,17 @@ unsigned int igt_create_color_fb(int fd, int width, int height,
uint32_t format, uint64_t tiling,
double r, double g, double b,
struct igt_fb *fb /* out */);
+unsigned int igt_create_pattern_fb(int fd, int width, int height,
+ uint32_t format, uint64_t tiling,
+ struct igt_fb *fb /* out */);
+unsigned int igt_create_color_pattern_fb(int fd, int width, int height,
+ uint32_t format, uint64_t tiling,
+ double r, double g, double b,
+ struct igt_fb *fb /* out */);
+unsigned int igt_create_image_fb(int drm_fd, int width, int height,
+ uint32_t format, uint64_t tiling,
+ const char *filename,
+ struct igt_fb *fb /* out */);
unsigned int igt_create_stereo_fb(int drm_fd, drmModeModeInfo *mode,
uint32_t format, uint64_t tiling);
void igt_remove_fb(int fd, struct igt_fb *fb);