Simplify the name since the old _fb function is now gone.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
abort();
}
-unsigned int kmstest_create_fb2(int fd, int width, int height, uint32_t format,
+unsigned int kmstest_create_fb(int fd, int width, int height, uint32_t format,
bool tiled, struct kmstest_fb *fb)
{
uint32_t handles[4];
unsigned int fb_id;
cairo_t *cr;
- fb_id = kmstest_create_fb2(fd, width, height, format, tiled, fb);
+ fb_id = kmstest_create_fb(fd, width, height, format, tiled, fb);
igt_assert(fb_id);
cr = kmstest_get_cairo_ctx(fd, fb);
double yspacing, const char *fmt, ...)
__attribute__((format (printf, 4, 5)));
-unsigned int kmstest_create_fb2(int fd, int width, int height, uint32_t format,
- bool tiled, struct kmstest_fb *fb);
+unsigned int kmstest_create_fb(int fd, int width, int height, uint32_t format,
+ bool tiled, struct kmstest_fb *fb);
unsigned int kmstest_create_color_fb(int fd, int width, int height,
uint32_t format, bool tiled,
double r, double g, double b,
cairo_t *cr;
uint32_t fb_id[NUM_CURSOR_TYPES];
- fb_id[cursor_type] = kmstest_create_fb2(data->drm_fd, cur_w, cur_h,
- DRM_FORMAT_ARGB8888, false,
- &data->fb[cursor_type]);
+ fb_id[cursor_type] = kmstest_create_fb(data->drm_fd, cur_w, cur_h,
+ DRM_FORMAT_ARGB8888, false,
+ &data->fb[cursor_type]);
igt_assert(fb_id[cursor_type]);
cr = kmstest_get_cairo_ctx(data->drm_fd,
uint32_t fb_id;
cairo_t *cr;
- fb_id = kmstest_create_fb2(data->drm_fd, w, h,
- DRM_FORMAT_XRGB8888, true, fb);
+ fb_id = kmstest_create_fb(data->drm_fd, w, h,
+ DRM_FORMAT_XRGB8888, true, fb);
igt_assert(fb_id);
cr = kmstest_get_cairo_ctx(data->drm_fd, fb);
if (o->flags & TEST_FENCE_STRESS)
tiled = true;
- o->fb_ids[0] = kmstest_create_fb2(drm_fd, o->fb_width, o->fb_height,
+ o->fb_ids[0] = kmstest_create_fb(drm_fd, o->fb_width, o->fb_height,
bpp_depth_to_drm_format(o->bpp, o->depth),
tiled, &o->fb_info[0]);
- o->fb_ids[1] = kmstest_create_fb2(drm_fd, o->fb_width, o->fb_height,
+ o->fb_ids[1] = kmstest_create_fb(drm_fd, o->fb_width, o->fb_height,
bpp_depth_to_drm_format(o->bpp, o->depth),
tiled, &o->fb_info[1]);
- o->fb_ids[2] = kmstest_create_fb2(drm_fd, o->fb_width, o->fb_height,
+ o->fb_ids[2] = kmstest_create_fb(drm_fd, o->fb_width, o->fb_height,
bpp_depth_to_drm_format(o->bpp, o->depth),
true, &o->fb_info[2]);
igt_assert(o->fb_ids[0]);
unsigned int fb_id;
cairo_t *cr;
- fb_id = kmstest_create_fb2(data->drm_fd,
+ fb_id = kmstest_create_fb(data->drm_fd,
mode->hdisplay, mode->vdisplay,
DRM_FORMAT_XRGB8888,
false /* tiling */,
width = mode->hdisplay;
height = mode->vdisplay;
- if (!kmstest_create_fb2(drm_fd, width, height, format, false, &fb[0]))
+ if (!kmstest_create_fb(drm_fd, width, height, format, false, &fb[0]))
goto err1;
- if (!kmstest_create_fb2(drm_fd, width, height, format, false, &fb[1]))
+ if (!kmstest_create_fb(drm_fd, width, height, format, false, &fb[1]))
goto err2;
if (drmModeSetCrtc(drm_fd, cconf->crtc->crtc_id, fb[0].fb_id,
bpp = 32;
depth = 24;
enable_tiling = false;
- fb_id = kmstest_create_fb2(drm_fd, crtc->mode.hdisplay,
+ fb_id = kmstest_create_fb(drm_fd, crtc->mode.hdisplay,
crtc->mode.vdisplay,
bpp_depth_to_drm_format(bpp, depth),
enable_tiling, fb_info);
cairo_t *cr;
uint32_t buffer_id;
- buffer_id = kmstest_create_fb2(drm_fd, width, height,
+ buffer_id = kmstest_create_fb(drm_fd, width, height,
DRM_FORMAT_XRGB8888,
false, &fb);
cr = kmstest_get_cairo_ctx(drm_fd, &fb);
fb_info = malloc(sizeof(struct scanout_fb));
igt_assert(fb_info);
- fb_info->handle = kmstest_create_fb2(drm_fd, width, height,
+ fb_info->handle = kmstest_create_fb(drm_fd, width, height,
DRM_FORMAT_XRGB8888,
false, &fb);
fb_info->width = width;
width = c->mode.hdisplay;
height = c->mode.vdisplay;
- fb_id = kmstest_create_fb2(drm_fd, width, height,
+ fb_id = kmstest_create_fb(drm_fd, width, height,
bpp_depth_to_drm_format(bpp, depth),
enable_tiling, &fb_info[current_fb]);
paint_output_info(c, &fb_info[current_fb]);
uint32_t fb_id;
stereo_fb_layout_from_mode(&layout, mode);
- fb_id = kmstest_create_fb2(drm_fd, layout.fb_width, layout.fb_height,
+ fb_id = kmstest_create_fb(drm_fd, layout.fb_width, layout.fb_height,
bpp_depth_to_drm_format(bpp, depth),
enable_tiling, fb);
cr = kmstest_get_cairo_ctx(drm_fd, fb);