summaryrefslogtreecommitdiffstats
path: root/gralloc_drm.h
Commit message (Collapse)AuthorAgeFilesLines
* Add gralloc_drm_get_prime_fd functionRob Herring2016-03-171-0/+1
| | | | | | Mesa EGL needs to retrieve prime fds from gralloc handles. Signed-off-by: Rob Herring <robh@kernel.org>
* Revert "gralloc: Remove localized hw specific pixel format"Chih-Wei Huang2015-10-101-1/+1
| | | | This reverts commit 3e00d3255ba6de08761a6b8f40b838680d502d0b.
* drm_gralloc: Add drm_gralloc actions to gralloc_drm.hSean Paul2015-10-101-0/+8
| | | | | Change-Id: If640f6ad7c6b904df59b5c5e164f184f1fc97170 Signed-off-by: Sean Paul <seanpaul@chromium.org>
* all: Cleanup duplicated macros.Emil Velikov2015-01-221-0/+1
| | | | | | | - Move MAX macro to gralloc_drm.h - Drop the freedreno's duplicated ALIGN macro. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* get rid of HAL pixelformats 5551 and 4444Chih-Wei Huang2013-09-251-2/+0
|
* gralloc: provide methods for hwc to change handle of a planeTapani Pälli2013-05-131-1/+4
| | | | | | | | | | | | | 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>
* Merge "gralloc: Remove localized hw specific pixel format"Andrew P Boie2013-05-091-1/+1
|\
| * gralloc: Remove localized hw specific pixel formatSean V Kelley2013-05-011-1/+1
| | | | | | | | | | | | | | | | | | Reduces need to build with drm_gralloc headers elsewhere in tree. Returning to system/graphics.h approach. Change-Id: I26717cfe0a9a83ab263c26803e2849eb55560696 Depends-Change-Id: I405398b172fab19949fef33c89a60132b1bd0ea9 Signed-off-by: Sean V Kelley <sean.v.kelley@intel.com>
* | gralloc: cleanup, use ALIGN macroTapani Pälli2013-05-031-2/+4
|/ | | | | Change-Id: I029aafe5a99393a4c0f7ff87f422317621fada12 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* gralloc: plane supportTapani Pälli2013-04-151-0/+5
| | | | | | | | | | | | 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>
* gralloc_drm: fix building errors with latest mesaChih-Wei Huang2013-04-111-0/+7
| | | | | Change-Id: Ifdf23b59542152c364d3ed010a4cc82bbf1a0103 Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
* gralloc: set supported planes for buffers on allocationTapani Pälli2013-01-211-0/+1
| | | | | | | | | This is done so that we should not have to do it dynamically during composition. This information will be used later with hwcomposer module when using planes for composition. Change-Id: I2b6716fe9a8da81050645900c6c0955385946991 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* gralloc: implement yuv offset query as hw specific functionTapani Pälli2013-01-211-0/+1
| | | | | | | | | | This patch reverts earlier cca14cfd... and introduces a new hw specific hook to query yuv components offsets which can vary between different hw, decoders, cameras etc. Change-Id: Ib60bc8ee28df7bc9425b6d7934294fe36fc55354 Depends-Change-Id: I1aa5368b21e588d5d711c1005fff2a5296e143a0 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* gralloc: new function to query the gem handle of buffer_handle_tTapani Pälli2013-01-151-0/+1
| | | | | | | | This function can be used from Mesa instead of having to expose the whole gralloc_drm_handle_t structure. Change-Id: I1aa5368b21e588d5d711c1005fff2a5296e143a0 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* gralloc: add NV12 format enum and fb allocation support for itTapani Pälli2012-12-141-0/+3
| | | | | Change-Id: If1c92810a17c60c29239f5384d6e971b015dd174 Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
* gralloc: add refcount to gralloc_drm_bo_tTapani Pälli2012-10-121-1/+1
| | | | | | | | | | 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>
* add support for YUV formatsChia-I Wu2011-10-271-0/+38
|
* revise gralloc_drm bo interfaceChia-I Wu2011-07-311-8/+5
| | | | Make it more intuitive to use.
* add more functions to gralloc_drm kms interfaceChia-I Wu2011-07-311-0/+3
| | | | Make it more complete.
* 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-1/+8
| | | | | 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/+84