summaryrefslogtreecommitdiffstats
path: root/gralloc_drm.c
Commit message (Collapse)AuthorAgeFilesLines
* Add gralloc_drm_get_prime_fd functionRob Herring2016-03-171-0/+7
| | | | | | Mesa EGL needs to retrieve prime fds from gralloc handles. Signed-off-by: Rob Herring <robh@kernel.org>
* WIP: always use gralloc_drm_get_pid()Rob Clark2015-10-061-1/+1
| | | | Rather than accessing gralloc_drm_pid directly.
* gralloc_drm: make GRALLOC_USAGE_SW_READ_OFTEN be a valid usageChih-Wei Huang2015-04-301-2/+3
| | | | | | | It allows the camera to get a lock on the buffer. This is required when a picture is taken. Credited to Edgardo Gho <edgardogho@gmail.com>.
* Merge remote-tracking branch 'x86/kitkat-x86' into lollipop-x86Chih-Wei Huang2015-04-191-8/+22
|\
| * gralloc_drm: bail out early when we find the driverEmil Velikov2015-01-221-11/+16
| | | | | | | | | | | | ... rather than going through all the conditionals. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
| * freedreno: completely untested initial supportRob Clark2015-01-161-0/+4
| | | | | | | | | | | | | | | | | | v2: [Emil Velikov] - drmGetVersion returns the kernel module name. - Add it to the build :) - freedreno_map returns void * while gralloc::map expects int. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
| * gralloc_drm: improve logChih-Wei Huang2015-01-011-7/+12
| |
* | fix building issues of 64-bit targetsChih-Wei Huang2015-01-201-4/+4
|/ | | | | | | Just change the 'data' field of gralloc_drm_handle_t to be a pointer to struct gralloc_drm_bo_t. Fix some warnings as well.
* Fix refcounting of mapped bo'sAndy Ross2013-06-121-0/+1
| | | | | | | | | | | | | Buffer objects created locally by gralloc_drm_bo_create() would have their refcount properly initialized to 1, but those received from other processes via the drv alloc function would be left at zero, so the delete check in gralloc_drm_bo_decref() would not destroy them as the refcount would wrap negative. The buffer would then leak forever until the mapping process (often surfaceflinger!) exitted. Issue: AXIA-2991 Change-Id: I1a0c73b21cfbc67b441970002fd71712112e1871 Signed-off-by: Andy Ross <andy.ross@windriver.com>
* Merge "gralloc_drm_bo_lock: add special usage for GRALLOC_USAGE_HW_TEXTURE"Andrew P Boie2013-02-041-1/+6
|\
| * gralloc_drm_bo_lock: add special usage for GRALLOC_USAGE_HW_TEXTUREAdrian Marius Negreanu2013-01-181-1/+6
| | | | | | | | | | | | | | | | | | | | The BO 'usage' can be different from the 'usage' passed to lock. For example when the BO is created by SurfaceMediaSource, having set GRALLOC_USAGE_HW_TEXTURE while the CPU locks it with GRALLOC_USAGE_SW_WRITE_OFTEN Change-Id: I4ba0ac05f1833439299e7fd694208076e66f8dfd Signed-off-by: Adrian Marius Negreanu <adrian.m.negreanu@intel.com>
* | gralloc: set supported planes for buffers on allocationTapani Pälli2013-01-211-0/+3
| | | | | | | | | | | | | | | | | | 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/+16
| | | | | | | | | | | | | | | | | | | | 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/+6
|/ | | | | | | | 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 refcount to gralloc_drm_bo_tTapani Pälli2012-10-121-2/+19
| | | | | | | | | | 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-4/+4
| | | | | | | | | | | | | | | | 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
* revise gralloc_drm bo interfaceChia-I Wu2011-07-311-45/+70
| | | | Make it more intuitive to use.
* protect against NULL handleChia-I Wu2011-07-301-1/+4
|
* allow FB to be mappedChia-I Wu2011-07-301-2/+5
| | | | This is useful for testing software renderer with FB.
* map a bo only when it is locked for CPU accessChia-I Wu2011-07-291-9/+44
| | | | To match the doc a little better.
* close bo on unregister()Chia-I Wu2011-07-291-16/+28
| | | | | Not sure if a remote process ever destroys a bo. But let register() opens a bo and unregister() closes it.
* improve bo validation a little bitChia-I Wu2011-07-181-1/+4
|
* add (untested) pipe supportChia-I Wu2011-06-131-4/+4
|
* add nouveau supportChia-I Wu2011-06-131-0/+4
|
* initial commitChia-I Wu2011-06-121-0/+304