lib: move create_stereo_fb from testdisplay to igt_fb

Move create_stereo_fb from testdisplay to igt_create_stereo_fb in igt_fb
so that it can be used in other tests.

v2: update for new igt_create_fb API
    add parameters for format and tiling
    remove some old debug code

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
Thomas Wood
2014-08-04 16:14:51 +01:00
parent a124b1a430
commit 4cb1946697
4 changed files with 108 additions and 116 deletions
+2
View File
@@ -75,6 +75,8 @@ unsigned int igt_create_color_fb(int fd, int width, int height,
uint32_t format, unsigned int tiling,
double r, double g, double b,
struct igt_fb *fb /* out */);
unsigned int igt_create_stereo_fb(int drm_fd, drmModeModeInfo *mode,
uint32_t format, unsigned int tiling);
void igt_remove_fb(int fd, struct igt_fb *fb);
/* cairo-based painting */