OSDN Git Service

android-x86/external-drm_framebuffer.git
5 years agoFix cooperating with hwcomposer android-x86-7.1-r4 android-x86-8.1-r1 android-x86-8.1-r2 android-x86-8.1-r3 android-x86-8.1-r4 android-x86-8.1-r5 android-x86-9.0-r1
Chih-Wei Huang [Thu, 10 Jan 2019 17:46:51 +0000 (01:46 +0800)]
Fix cooperating with hwcomposer

When hwcomposer is available, framebuffer_close() will be called.
Thus the allocated struct drm_framebuffer is just freed. However,
the gralloc still holds a pointer referring to the freed struct
drm_framebuffer. As a result, the following errors are repeated:

01-11 00:28:47.088  1103  1103 E drm-fb  : Failed to get handle from prime fd: 9
01-11 00:28:48.062  1103  1103 E drm-fb  : Failed to get handle from prime fd: 9

This patch fixes it by setting the pointer to NULL.

5 years agoInitial drm_framebuffer HAL implementation (v4)
lambdadroid [Sun, 2 Jul 2017 13:10:26 +0000 (15:10 +0200)]
Initial drm_framebuffer HAL implementation (v4)

Adds a simple DRM framebuffer HAL implementation, that uses kernel
mode setting and page flips to display screens.

v2: Cleanup, implement enableScreen to turn off the display properly.
v3: Refactor implementation to add framebuffer when importing buffers.
v4: Refactor to static (independent) library to make it usable for
    gbm_gralloc.