Commit Graph

7 Commits

Author SHA1 Message Date
Saurabh Shah
23cd08af20 sdm: Configure RMFB delay based on whether it is refcounted
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
2017-07-11 10:24:30 -07:00
Saurabh Shah
f84c412a37 sdm/hwc/gralloc: Move fb_id lifecycle to DAL
--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
2017-04-14 10:14:34 -07:00
Saurabh Shah
a57cf169f4 sdm: Destroy singleton DRMMaster instance
Destroy singleton DRMMaster instance on teardown, this is important
for back to back API test runs

Change-Id: I27e5d2adcc9d0805281dd0c858eaed5af745b269
CRs-fixed: 1114808
2017-03-01 11:20:04 -08:00
Saurabh Shah
b1bdf6e2a8 libdrmutils: Remove dependency on drmModeAddFB3
drmModeAddFB3 is a custom API which may not be available.
This change removes dependency on drmModeAddFB3.

Change-Id: I05807ebde1b8251e326851d99a39df16d27fed33
2017-02-16 11:34:53 -08:00
Saurabh Shah
fad1afd014 libdrmutils: Add support for RMFB2
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
2017-02-08 10:59:31 -08:00
Saurabh Shah
66c941bd5d sdm: drm: Add Atomic commit support
Add support for atomic commit, MDP comp for the peripheral display.

Change-Id: I579d3379ba97cbc73485a4434bf29126226e2f85
CRs-fixed: 1114808
2017-02-07 14:37:54 -08:00
Saurabh Shah
7d476edfb3 sdm: drm: Add support for default non-atomic mode
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
2017-02-07 14:37:24 -08:00