mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-23 09:56:02 +00:00
kms_setmode: Adjust to the igt_create.*fb() API
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
0d4cf057f5
commit
ab4cb9d7ce
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user