mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-25 07:05:45 +00:00
lib: remove kmstest_create_fb
Use the new-style function using drm fourcc codes instead everywhere. To easily use thew fourcc based interface also expose bpp_depth_to_drm_format from the library. Finally include drm_fourcc.h from the igt_kms.h header since pretty much everyone needs this now. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
+9
-6
@@ -1290,12 +1290,15 @@ static void run_test_on_crtc_set(struct test_output *o, int *crtc_idxs,
|
||||
if (o->flags & TEST_FENCE_STRESS)
|
||||
tiled = true;
|
||||
|
||||
o->fb_ids[0] = kmstest_create_fb(drm_fd, o->fb_width, o->fb_height,
|
||||
o->bpp, o->depth, tiled, &o->fb_info[0]);
|
||||
o->fb_ids[1] = kmstest_create_fb(drm_fd, o->fb_width, o->fb_height,
|
||||
o->bpp, o->depth, tiled, &o->fb_info[1]);
|
||||
o->fb_ids[2] = kmstest_create_fb(drm_fd, o->fb_width, o->fb_height,
|
||||
o->bpp, o->depth, true, &o->fb_info[2]);
|
||||
o->fb_ids[0] = kmstest_create_fb2(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,
|
||||
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,
|
||||
bpp_depth_to_drm_format(o->bpp, o->depth),
|
||||
true, &o->fb_info[2]);
|
||||
igt_assert(o->fb_ids[0]);
|
||||
igt_assert(o->fb_ids[1]);
|
||||
igt_assert(o->fb_ids[2]);
|
||||
|
||||
Reference in New Issue
Block a user