diff options
author | Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> | 2019-03-04 17:47:41 -0800 |
---|---|---|
committer | Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> | 2019-03-11 15:07:28 -0700 |
commit | cfc3bbbc072bb0fd1acf361473ddbf683bbbc124 (patch) | |
tree | 43fd5216d98bd8092efadd6df6bf41a688146e4b /lib/igt_fb.h | |
parent | 0e9695fd9b280286be027e700a0d3796f5cf9aa9 (diff) |
lib/igt_fb: Function to create a bo for passed in igt_fb
In order to execute negative tests that validate fb creation, tests need to
be able to call the addfb ioctl themselves so that the arguments can be
manipulated. Add a library function to provide an initialized fb without
registering the fb with the kernel.
Cc: Clinton Taylor <clinton.a.taylor@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'lib/igt_fb.h')
-rw-r--r-- | lib/igt_fb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/igt_fb.h b/lib/igt_fb.h index 24d40b18..7667579b 100644 --- a/lib/igt_fb.h +++ b/lib/igt_fb.h @@ -147,6 +147,9 @@ int igt_dirty_fb(int fd, struct igt_fb *fb); void *igt_fb_map_buffer(int fd, struct igt_fb *fb); void igt_fb_unmap_buffer(struct igt_fb *fb, void *buffer); +void igt_create_bo_for_fb(int fd, int width, int height, + uint32_t format, uint64_t modifier, + struct igt_fb *fb); int igt_create_bo_with_dimensions(int fd, int width, int height, uint32_t format, uint64_t modifier, unsigned stride, uint64_t *size_ret, unsigned *stride_ret, |