summaryrefslogtreecommitdiffstats
path: root/gralloc.c
Commit message (Collapse)AuthorAgeFilesLines
* WIP: synchronize gralloc entry pointsRob Clark2016-03-171-15/+55
| | | | | | Note entirely sure what synchronization guarantees android provides before calling in to module.. but stuff inside gralloc module is definately not thread-safe so slap a big lock around the outside.
* gralloc: provide methods for hwc to change handle of a planeTapani Pälli2013-05-131-0/+1
| | | | | | | | | | | | | Patch changes reserve_plane to get id number as additional parameter. This can be used by hwc to make changes to a particular plane. New api hwc_set_plane_handle is introduced so that hwc can change the buffer handle of a plane, this is required because after plane has been reserved for a particular ui layer, this handle can change as the layer is typically multibuffered. Change-Id: I32d711ff3565ae9e8f5b8a6691c22b03a50cefe7 Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
* gralloc: plane supportTapani Pälli2013-04-151-0/+3
| | | | | | | | | | | | patch introduces API between hwcomposer and gralloc, hwcomposer can reserve an overlay plane to be used by a particular layer in prepare hook, drmModeSetPlane for each plane gets called later when post() gets called by the eglSwapBuffers (from hwcomposer set), this can be later changed to use atomic modesetting code and drm properties to make one 'atomic flip' for graphics + planes. Change-Id: I3b7d179b285e43eb19fdc3b4c7ce093f3ba6aade Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* move drm_module_t to a hal private headerTapani Pälli2013-02-181-7/+1
| | | | | | | | this way it can be accessed by hwcomposer module, which will be required to implement jellybean mr1 hooks. Change-Id: I68872243c30aee2d0eb76f38fe54efdea4862a66 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* gralloc: add refcount to gralloc_drm_bo_tTapani Pälli2012-10-121-4/+2
| | | | | | | | | | This is an basic enabler for gralloc to let buffers live while they are still in use by gralloc (for example during scanout), otherwise Android may choose to destroy them while they are still needed. This facility will get used with upcoming plane support and direct rendering support. Change-Id: I2f0bc595846a68e8d2feb5138b022d16f207e2b5 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* Change all occurances of LOGE to ALOGE, LOGW to ALOGW and LOGI to ALOGI due ↵Charles Johnson2012-07-101-2/+2
| | | | | | | | | | | | | | | | to change in Jelly Bean. Signed-off-by: Charles Johnson <charles.f.johnson@intel.com> modified: gralloc.c modified: gralloc_drm.c modified: gralloc_drm_intel.c modified: gralloc_drm_kms.c modified: gralloc_drm_nouveau.c modified: gralloc_drm_pipe.c modified: gralloc_drm_radeon.c Change-Id: Idd9e533eab366d9f9dc199d961891255a66384a2
* remove an unnecessary includeChia-I Wu2011-09-081-1/+0
|
* revise gralloc_drm bo interfaceChia-I Wu2011-07-311-25/+6
| | | | Make it more intuitive to use.
* make sure the driver is initialized before registeringChia-I Wu2011-07-301-0/+10
|
* map a bo only when it is locked for CPU accessChia-I Wu2011-07-291-2/+2
| | | | To match the doc a little better.
* close bo on unregister()Chia-I Wu2011-07-291-2/+13
| | | | | Not sure if a remote process ever destroys a bo. But let register() opens a bo and unregister() closes it.
* initial commitChia-I Wu2011-06-121-0/+364