kms_setmode: Adjust to the igt_create.*fb() API

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
Damien Lespiau 2014-06-23 15:26:34 +01:00
parent 0d4cf057f5
commit ab4cb9d7ce

View File

@ -179,16 +179,14 @@ static void create_fb_for_crtc(struct crtc_config *crtc,
{ {
int bpp; int bpp;
int depth; int depth;
bool enable_tiling;
int fb_id; int fb_id;
bpp = 32; bpp = 32;
depth = 24; depth = 24;
enable_tiling = false;
fb_id = igt_create_fb(drm_fd, crtc->mode.hdisplay, fb_id = igt_create_fb(drm_fd, crtc->mode.hdisplay,
crtc->mode.vdisplay, crtc->mode.vdisplay,
igt_bpp_depth_to_drm_format(bpp, depth), igt_bpp_depth_to_drm_format(bpp, depth),
enable_tiling, fb_info); I915_TILING_NONE, fb_info);
igt_assert(fb_id > 0); igt_assert(fb_id > 0);
} }