[igt-dev] [PATCH i-g-t 0/3] Fixes to kms_addfb_basic + RFC IGT buf alloc

Deepak Rawat drawat at vmware.com
Wed Jan 16 00:22:27 UTC 2019


Hi,

Sending a few fixes to kms_addfb_basic which are mainly for vmwgfx to
run without error. These are really shortsighted fix and with this I
would like to get feedback from community regarding BO allocation for
drivers like vmwgfx which have private IOCTL for allocation. My end
goal is to add vmwgfx BO support which creating igt_fb.

Currently igt_fb is somewhat tied to handle. I didn't looked into much
detail but my fist thought was to separate out handle, is_dumb, etc from
igt_fb and have a separate struct for BO. Similarly distinct API for BO
create/destroy. Or is this unnecessary and simply adding a new API
igt_destroy_bo should be enough to solve problems where
igt_create_bo_with_dimensions() was used.

I would like to know if anyone else looked into this or it's in their TODO
list.

Thanks,
Deepak

Deepak Rawat (3):
  igt/kms_addfb_basic: Call dumb destroy in case have dumb buffer
  igt/kms_addfb_basic: Call igt_require_gem for gem specific tiling
  igt/kms_addfb_basic: Add missing calls to gem_close

 tests/kms_addfb_basic.c | 91 ++++++++++++++++++++++++++++++++---------
 1 file changed, 71 insertions(+), 20 deletions(-)

-- 
2.17.1



More information about the igt-dev mailing list