OSDN Git Service

android-x86/external-drmfb-composer.git
3 years agoMerge remote-tracking branch 'goffioul/master' q-x86
Mauro Rossi [Sat, 16 May 2020 09:49:58 +0000 (11:49 +0200)]
Merge remote-tracking branch 'goffioul/master'

4 years agoAdd CAP_NET_ADMIN capability
Michael Goffioul [Wed, 9 Oct 2019 17:51:07 +0000 (13:51 -0400)]
Add CAP_NET_ADMIN capability

This is required to use uevent with a buffer size that is larger than
net.core.rmem_max.

See https://android.googlesource.com/platform/system/core/+/41aa2c3703ece8c7e8f869dbb74aaf68aeca2310

4 years agoAlways enable vsync thread when requested by surfaceflinger
Michael Goffioul [Wed, 9 Oct 2019 15:58:16 +0000 (11:58 -0400)]
Always enable vsync thread when requested by surfaceflinger

There is an issue with surfaceflinger at startup whereby it needs at
least 2 vsync events in order to compute the vsync period. If these
events do not come after 1s timeout, it'll fake a vsync event, leading
to a crash (mod-by-0 exception due to vsync period being 0).

4 years agoLink against android.hardware.graphics.mapper@3.0
Michael Goffioul [Wed, 9 Oct 2019 15:56:55 +0000 (11:56 -0400)]
Link against android.hardware.graphics.mapper@3.0

4 years agodisable drmfb-composer service by default pie-x86
Mauro Rossi [Sun, 9 Jun 2019 22:26:46 +0000 (00:26 +0200)]
disable drmfb-composer service by default

In order to start the service at runtime in init.sh

4 years agoAndroid.mk: Allow setting a custom minigbm path
lambdadroid [Wed, 8 May 2019 10:12:13 +0000 (12:12 +0200)]
Android.mk: Allow setting a custom minigbm path

5 years agosepolicy: Add simple sepolicy for drmfb-composer
lambdadroid [Sun, 21 Apr 2019 12:56:24 +0000 (14:56 +0200)]
sepolicy: Add simple sepolicy for drmfb-composer

5 years agoAvoid logging handlePageFlip() warning after disconnect
lambdadroid [Wed, 16 Jan 2019 18:10:39 +0000 (19:10 +0100)]
Avoid logging handlePageFlip() warning after disconnect

This usually happens once after disconnecting a display, because
the disconnection code resets mFlipPending (in case the flip never
succeeds successfully). We can just ignore the warning in this case.

5 years agoAvoid file descriptor leak of acquire fence for client target
lambdadroid [Wed, 16 Jan 2019 17:53:12 +0000 (18:53 +0100)]
Avoid file descriptor leak of acquire fence for client target

In most cases, the fence was closed in presentDisplay(). However,
presentDisplay() is not necessarily called after setClientTarget().
This changes mAcquireFence to a base::unique_fd to make sure the
previous one is always closed before a new one is assigned.

5 years agoAdd .drmfb suffix to service name in init file
lambdadroid [Sun, 13 Jan 2019 13:27:10 +0000 (14:27 +0100)]
Add .drmfb suffix to service name in init file

This is to avoid conflicts if the default composer service is also
installed.

5 years agoFix file descriptor leak of layer buffer acquire fences
lambdadroid [Fri, 11 Jan 2019 16:26:14 +0000 (17:26 +0100)]
Fix file descriptor leak of layer buffer acquire fences

Even if the layer buffers are not used at the moment (because we
always fallback to client composition), the acquire fences still
need to be closed to avoid leaking file descriptors.

During client composition, SurfaceFlinger will wait for the
layer buffers if necessary.

5 years agoAdd README
lambdadroid [Wed, 9 Jan 2019 14:45:26 +0000 (15:45 +0100)]
Add README

5 years agoImplement DRM hotplug events
lambdadroid [Tue, 8 Jan 2019 20:47:24 +0000 (21:47 +0100)]
Implement DRM hotplug events

5 years agoImplement vsync events
lambdadroid [Sun, 6 Jan 2019 18:24:33 +0000 (19:24 +0100)]
Implement vsync events

5 years agoAdd support to import framebuffers from minigbm buffers
lambdadroid [Fri, 4 Jan 2019 19:36:25 +0000 (20:36 +0100)]
Add support to import framebuffers from minigbm buffers

The buffers are checked at runtime to handle both allocator
implementations transparently without having to re-compile.

5 years agoReplace Android.bp with Android.mk
lambdadroid [Wed, 2 Jan 2019 20:37:16 +0000 (21:37 +0100)]
Replace Android.bp with Android.mk

This is in prepration of conditional compilation of a minigbm importer.

5 years agoInitial Commit
lambdadroid [Mon, 31 Dec 2018 16:53:44 +0000 (17:53 +0100)]
Initial Commit