On 2021-07-07 at 11:52:38 +0100, Matthew Auld wrote: > Currently we pass the devid as if it were the fd, which doesn't work. > > Signed-off-by: Matthew Auld <matthew.auld@xxxxxxxxx> LGTM. Reviewed-by: Ramalingam C <ramalingam.c@xxxxxxxxx> > Cc: Mohammed Khajapasha <mohammed.khajapasha@xxxxxxxxx> > Cc: Latvala Petri <petri.latvala@xxxxxxxxx> > Cc: Michael J. Ruhl <michael.j.ruhl@xxxxxxxxx> > --- > tests/kms_addfb_basic.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/tests/kms_addfb_basic.c b/tests/kms_addfb_basic.c > index 91fb6ac9..eff1d9b2 100644 > --- a/tests/kms_addfb_basic.c > +++ b/tests/kms_addfb_basic.c > @@ -150,13 +150,11 @@ static void invalid_tests(int fd) > igt_describe("Check if addfb2 with a system memory gem object " > "fails correctly if device requires local memory framebuffers"); > igt_subtest("invalid-smem-bo-on-discrete") { > - int devid; > uint32_t handle, stride; > uint64_t size; > > igt_require_intel(fd); > - devid = intel_get_drm_devid(fd); > - igt_require(gem_has_lmem(devid)); > + igt_require(gem_has_lmem(fd)); > igt_calc_fb_size(fd, f.width, f.height, > DRM_FORMAT_XRGB8888, 0, &size, &stride); > handle = gem_create_in_memory_regions(fd, size, REGION_SMEM); > -- > 2.26.3 > > _______________________________________________ > igt-dev mailing list > igt-dev@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/igt-dev _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx