Fix build warning.
Jira: None:
Test: No Graphics Regression.
Signed-off-by: Ragha Khandenahally <Ragha.Khandenahally@intel.com>
Always fall back to GPU when Overlay usage is disabled.
If DISABLE_OVERLAY_USAGE is defined, there is no need to do
atomic test commits as intention is that we will only recieve
final buffer which needs to be displayed.
Jira: None:
Test: No Graphics Regression.
Signed-off-by: Ragha Khandenahally <Ragha.Khandenahally@intel.com>
Ensure format and usage are in right types.
In GRALLOC_MODULE_PERFORM_CREATE_BUFFER, expectation is
that usage and format are of type int. Lets make this explicit.
Jira: None.
Test: Boots to Animation screen on Android Things.
Signed-off-by: Ragha Khandenahally <Ragha.Khandenahally@intel.com>
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>
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.
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>
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>
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>
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>
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>
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>