Commit Graph

12 Commits

Author SHA1 Message Date
Linux Build Service Account
25154792a5 Merge "hwc: vds: Display HAL changes for VDS based solution" 2014-02-06 06:20:39 -08:00
Linux Build Service Account
2f4752f7f0 Merge "hwc: vds: Configure WB as secure if output buf. handle is secure" 2014-02-06 06:20:38 -08:00
Tatenda Chipeperekwa
d6a8d4b288 hwc: vds: Display HAL changes for VDS based solution
1.  Hard code the vsync for VDS during the first prepare call
    with valid VDS display. We align the vsync period to that
    of the primary display. Effectively, we produce at the at
    the primary refresh rate and do not worry about the consumer.

2.  Do not bail out on the first frame as it leads to showing empty
    buffer. This leads to failures for some test cases such as those
    run in CTS.

3.  We need an FB layer handle check to cater for this usecase:
        i. Video is playing in landscape on Primary
        ii. Launch ScreenRecord app
    In this scenario, the first VDS draw call will have HWC
    composition and VDS does not involve GPU to get eglSwapBuffer
    to get valid fb handle.

Change-Id: Idc7d989e244a83ad28ce730ecb12955bc249dc25
2014-02-03 15:16:15 -08:00
Tatenda Chipeperekwa
92961f88e4 hwc: vds: Configure WB as secure if output buf. handle is secure
When we receive a buffer handle that is secure, we configure WB as
secure; otherwise we continue as normal.

Change-Id: I497e257352c103c5da7ac2dc3fd4d7fe0e0b3953
2014-02-03 15:14:15 -08:00
Arun Kumar K.R
2aa44c66fa hwc: resolve compiler warnings
- remove unused variables.
- fix incorrect castings.

Change-Id: I7661edb4539a3ffc7d4aedbb9f633bc5ba1dc149
2014-02-03 09:20:36 -08:00
Linux Build Service Account
3a61a7c777 Merge "hwc: Drop alpha from writeback" 2014-01-30 07:23:28 -08:00
Linux Build Service Account
90dbb20f26 Merge "Set priority among various display devices" 2014-01-30 07:20:51 -08:00
Raj Kamal
52b4fdbdbd Set priority among various display devices
* When a non-WFD virtual display device (SSD/
screenrecord) is active along with
non-hybrid WFD solution(WFD faked on
external), give preference to non-hybrid WFD
device over non-WFD virtual display device.

* This is needed only in cases when WFD is
enabled via v4l2 rather than using VDS api's.

Change-Id: I63e53baa214bdcdac19430ca30b939cdd7416cbb
2014-01-28 16:26:23 +05:30
Tatenda Chipeperekwa
a2fdebee45 hwc: Drop alpha from writeback
The alpha in the writeback is unused right now. Force MDP to use
RGBX for composing writeback.

Change-Id: I3d92338ced8bb98fd0515107d84c306992a3c133
2014-01-27 16:12:41 -08:00
Tatenda Chipeperekwa
b0a9f9d7d2 hwc: virtual display: Use outbuf handle width to configure xres
Use outbuf handle width to configure display xres, since that would
have the necessary alignment. The outbuf is guaranteed to be valid
by the framework during hwc_prepare.

We use the framebuffer layer's display frame to obtain the actual
width. For example, the actual width could be 720 but the aligned
width would be 736.

Change-Id: I5afe38001be8116e1ad6a9f46c7ecaa50b5f25a2
2014-01-22 11:49:03 -08:00
Tatenda Chipeperekwa
f19f84dd05 Copy virtual display FB to outbuf even with no app layers
In the current composition strategy we bail out if there are no app
layers present. However, this leads to undesirable behaviour if the
FB contains valid data that is expected as output. In this patch we
copy the FB to the output buffer to satisfy this use case.

Change-Id: If905d8b0652faf73b9aecad1abc760f21967807f
2014-01-22 11:48:54 -08:00
Ramkumar Radhakrishnan
8bb48d3314 hwc: Common Display HAL to support VDS & V4L2 WFD solutions
1. Define classes for VDS and V4L2 based WFD solutions.
2. Overload the functionalities for VDS and V4L2 WFD solutions.
3. Instantiate VDS object or V4L2 object during hwc init based on the
   property persist.hwc.enable_vds set by the user.
4. VDS solution is not verified as it requires some dependent changes.

Change-Id: I74bf944d532da138c850d4ec0c20b4a881489efa
2014-01-21 18:41:04 -08:00