Configure RMFB delay based on whether it is refcounted. If it is,
fb_id should be released immediately from userspace and driver will
free it when its usage is over. If not refcounted userspace needs
to defer freeing fb_id until a time where driver usage will be over.
Change-Id: I162723a5426c7e7c041d444ba50a73475858e96f
CRs-fixed: 1114808
--Move fb_id creation/deletion from gralloc to DAL and make it per
cycle
--Make Gralloc/HWC/SDM structures independent of libdrmutils
and fb_id / gemhandles
--Pass BufferAllocator pointer to Display* and HWDevice*
--Add new GetBufferLayout API to BufferAllocator that can be called
by DAL before creating fb_id
Change-Id: I102f432cccee912ad4bcce622764938fa3d36ed3
CRs-fixed: 1114808
Destroy singleton DRMMaster instance on teardown, this is important
for back to back API test runs
Change-Id: I27e5d2adcc9d0805281dd0c858eaed5af745b269
CRs-fixed: 1114808
drmModeAddFB3 is a custom API which may not be available.
This change removes dependency on drmModeAddFB3.
Change-Id: I05807ebde1b8251e326851d99a39df16d27fed33
Add support for RMFB2 if available. Original RMFB bypasses refcounting
in kernel and removes planes, crtcs etc associated with the FB Id.
RMFB2 has proper refcounting and allows buffer removal to be
independent of drawing thread in client
Change-Id: I4f2c9dc509844467f39be067697a46d1beeeaff7
CRs-fixed: 1114808
Add support for booting up with default non-atomic mode
Add libdrmutils that currently has:
DRMMaster:
Creates a master DRM session
Converts ION handles to DRM FB_ID
DRMResMgr:
Enables a default display path by providing APIs for
connector id, crtc id, mode etc
Change-Id: I1dc697d2cc5e3fa744c99e2c9ddd57bf06e78c4f
CRs-fixed: 1114808