OSDN Git Service

android-x86/external-IA-Hardware-Composer.git
7 years agoAdd Board Config option to disable Native Color Mode support.
Ragha Khandenahally [Sun, 22 Jan 2017 02:04:45 +0000 (18:04 -0800)]
Add Board Config option to disable Native Color Mode support.

Android Things frameworks still doesnt have support for this.
This patch adds support to disable this in HWC via Build Config
option.

Jira: None.
Test: Build passes.

Signed-off-by: Ragha Khandenahally <Ragha.Khandenahally@intel.com>
7 years agoNo need to maintain a cache of OverlayBuffers.
Kalyan Kondapally [Sat, 21 Jan 2017 08:18:09 +0000 (00:18 -0800)]
No need to maintain a cache of OverlayBuffers.

We cache imported buffers which is unneeded as Gralloc does it
already. Instead, what we try to ensure is have a reference to
the buffer till it is scanned out.

Jira: None.
Test: Doesnt regress Android, Test cases work on Linux.

7 years agoLinux: Make kmscube wait on the right fence.
Rafael Antognolli [Wed, 18 Jan 2017 18:23:32 +0000 (10:23 -0800)]
Linux: Make kmscube wait on the right fence.

Inside the main loop, when going to wait on the fence that informs that
the drm commit is finished, we need to wait on the fence from the
previous frame. The current frame is yet to be committed, so it has no
valid fence.

Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
7 years agoTests: Inital plumbing for connection change notifications.
johnson.lin [Wed, 18 Jan 2017 07:57:37 +0000 (15:57 +0800)]
Tests: Inital plumbing for connection change notifications.

In order to test multi monitor support, we need a way for test apps
to know when a display has been connected or disconnected. This
patch adds initial support for it but the hot plug events dont
yet work.

Jira:None.
Test:Kmscube works on external monitor.

Signed-off-by: johnson.lin <johnson.lin@intel.com>
7 years agoEnsure we are using the right connected display.
johnson.lin [Wed, 18 Jan 2017 07:54:32 +0000 (15:54 +0800)]
Ensure we are using the right connected display.

We assume that the first crtc is connected while it might
not be true depending on what you are using (i.e. HDMI, DP etc).
This patch fixes it.

Jira: None.
Test: KmsCube runs on external monitor connected via DP.

Signed-off-by: johnson.lin <johnson.lin@intel.com>
7 years agoLinux: Fix kms cube test case.
Kalyan Kondapally [Wed, 18 Jan 2017 00:08:40 +0000 (16:08 -0800)]
Linux: Fix kms cube test case.

When creating fbs to scanout buffers ensure they have the right
permissions. The buffer needs to be imported with card0 fd rather
than render node.

Jira: None.
Test: Builds on linux and kms cube demo works correctly.

Signed-off-by: Kalyan Kondapally <kalyan.kondapally@intel.com>
7 years agoMake DisplayManager private in cpp file.
Kalyan Kondapally [Mon, 16 Jan 2017 10:09:13 +0000 (02:09 -0800)]
Make DisplayManager private in cpp file.

We dont need this in header file and avoids exposing other unneeded
headers like spinlock etc.

Jira: None.
Test: Builds and boots to home screen.

Signed-off-by: Kalyan Kondapally <kalyan.kondapally@intel.com>
7 years agoInitial import.
Kalyan Kondapally [Wed, 21 Dec 2016 21:06:52 +0000 (13:06 -0800)]
Initial import.

Includes Several commits:

commit aee43ab680941f5c7322cd62abb91b1ddf398852
Author: Kalyan Kondapally <kalyan.kondapally@intel.com>
Date:   Sat Jan 14 23:35:35 2017 -0800

    Fix issues related to Tests.

    This fixes the linking issues we had with some of the GL
    and EGL API. Test apps build and link but Atomic commit fails
    during run time.

    Jira: None.
    Test: Builds on Linux and Android. No regressions seen on Android.

Signed-off-by: Kalyan Kondapally <kalyan.kondapally@intel.com>
commit 8ff76e215cfdb08a92382a11ea15ac3188ddf6fa
Author: Kalyan Kondapally <kalyan.kondapally@intel.com>
Date:   Sat Jan 14 16:47:26 2017 -0800

    Use sync wait instead of waiting in a loop to submit commit.

    Inspired by: https://github.com/rantogno/kmscube/commit/fc52268da79ed406da02c88f849f1ef70dab789f

    Jira: None.
    Test: Builds and boots to home screen. No Graphics regrssion.

Signed-off-by: Kalyan Kondapally <kalyan.kondapally@intel.com>
commit 3aa1ae042b9ccd7c4f768db0498a056b92903f71
Author: Johnson Lin <johnson.lin@intel.com>
Date:   Thu Jan 12 10:58:08 2017 +0800

    Add kmscube as test program

    Test program doesn't link yet. Imported from
    https://github.com/rantogno/kmscube

    Jira: None.
    Test: None.

commit 0f7cfbc9bc8fcec3e296433ac9d09e549cc4967c
Author: Tapani Pälli <tapani.palli@intel.com>
Date:   Tue Jan 10 06:58:27 2017 -0800

    hwcomposer: in case of EBUSY, spin until commit succeeded

    Bug: #11
    Test: AnTuTu Marooned demo works correctly
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Initial Linux support added by Johnson Lin <johnson.lin@intel.com>