summaryrefslogtreecommitdiffstats
path: root/gralloc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Return dup() of FD for GRALLOC_MODULE_PERFORM_GET_DRM_FDRobert Foss2017-05-181-1/+1
| | | | | | | Prevent callers of GRALLOC_MODULE_PERFORM_GET_DRM_FD from sharing the same actual FD. Signed-off-by: Robert Foss <robert.foss@collabora.com>
* Fix missing 0 init of alloc_device_tRob Herring2017-04-131-1/+1
| | | | | | | | This fixes a crash of "dumpsys SurfaceFlinger" because the dump() pointer is not NULL. Change-Id: If4c1f71fd532e21bb246c1b815b8b9ca00bb405b Signed-off-by: Rob Herring <robh@kernel.org>
* Quiet log prints changing them to verbose levelRob Herring2017-04-131-2/+2
| | | | | | | | Quiet down various informational tracing messages switching them to verbose log level Change-Id: I0a78a9bcb1f807dc2db060ab1551cd5f62fa3f2d Signed-off-by: Rob Herring <robh@kernel.org>
* gbm_gralloc: Remove the invalid int cast and assignment in gbm_mod_perform()John Stultz2017-03-291-2/+0
| | | | | | | | | | | | | | | | | | | | | In gbm_mod_perform(), for the cmd GRALLOC_MODULE_PERFORM_GET_USAGE, the code takes the third argument, casts it as an int* and then writes a zero into what the pointer points to. The problem with this is that the third argument to that function is actually a native_handle_t, so writing zero to the first int in that structure ends up overwriting the version value, causing the native_handle_t code to see the value as corrupt. This results in lots of warnings and leaked fds. Change-Id: If64770c164557b467f76ca97ddc182565730d394 Cc: Rob Herring <rob.herring@linaro.org> Cc: Amit Pundir <amit.pundir@linaro.org> Cc: Sumit Semwal <sumit.semwal@linaro.org> Cc: Vishal Bhoj <vishal.bhoj@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Rob Herring <robh@kernel.org>
* Kill off unused variableEmil Velikov2016-12-131-1/+1
| | | | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* Stub out GRALLOC_MODULE_PERFORM_GET_USAGERobert Foss2016-10-251-0/+8
| | | | | | This implements an initial stub for GRALLOC_MODULE_PERFORM_GET_USAGE Signed-off-by: Robert Foss <robert.foss@collabora.com>
* Silence compiler type narrowing errorsRobert Foss2016-10-251-1/+2
| | | | | | Add static_cast to op, to prevent compiler warnings. Signed-off-by: Robert Foss <robert.foss@collabora.com>
* Initial GBM based grallocRob Herring2016-04-011-0/+322
Based on drm_gralloc. Some remants of drm_gralloc remain to be compatible with mesa and drm_hwcomposer. Signed-off-by: Rob Herring <robh@kernel.org>