Commit Graph

89 Commits

Author SHA1 Message Date
Sravan Kumar D.V.N
56da81b668 copybit : Add support for NV12_ENCODABLE format
Change-Id: I7087dcad2238a3c35cc15c28d75b76a9e3ca6718
2012-09-12 22:54:55 -05:00
Saurabh Shah
1be2fcd4f0 hwc: qbuf: Add API to unlock all
Add API to unlock all current and previous buffers.
This is essential in suspend cases.

CRs-fixed: 382332

(cherry picked from commit d24eb9e70480f89561108078f68cbbd9b20e4bb5)

Change-Id: I54fcded7cabc79d991d4b28a248867d860ec6b08
2012-09-12 22:52:42 -05:00
Andrew Sutherland
54cbb6f94f Revert "hwc: call eglSwapBuffers even when there is no list"
This reverts commit 7b060c9cab.
*causes blank draws, revisit someday
2012-09-07 21:58:21 -05:00
Sravan Kumar D.V.N
857f8a5f0b display : Avoid calling eglGetRenderBufferANDROID for each layer
Currently eglGetRenderBufferANDROID is being called for each layer
which is not needed. This change calls this API once in set call,
and passes the 'render buffer' to drawLayerUsingCopybit.

Change-Id: I310163db02df13e8c03b51d73f291588fbf08160
2012-08-21 16:11:44 -05:00
Andrew Sutherland
7b060c9cab hwc: call eglSwapBuffers even when there is no list
Should fix crt-off animation

Change-Id: Ia38a35dcb16811337c80a3f7069d770e6eebb8a7
2012-08-21 16:11:17 -05:00
Kinjal Bhavsar
384a5b2709 Overlay: Switch the flip for MDP, on 90 rotated source
Camera client doesn't factor in the 90-rotated source when setting the flip
Switch the flips when the source is 90-rotated.

Change-Id: I16b81ca2c146f9b4c20908674f89d0a2e9808681
2012-08-19 05:23:50 +02:00
Harshad Bhutada
2a44da70d2 framebuffer: unlock previous buffer after current buffer submitted
Change-Id: Ib2a44966d1484b4f4e2239d8a706dc55b5beaaeb
2012-08-19 05:23:08 +02:00
Steve Kondik
85ff2df3a5 display: Add option to disable hardware VSYNC
* Set TARGET_NO_HW_VSYNC to disable use of VSYNC

Change-Id: I9c48f89ba6d4a39baf7c149717b13c83c0b7f3eb

Conflicts:
	common.mk
	libhwcomposer/hwc.cpp
2012-08-12 00:10:39 -05:00
Andrew Sutherland
c8b3f3bce8 Merge remote-tracking branch 'caf/jb' into temp 2012-08-09 22:38:37 -05:00
Linux Build Service Account
31168fad8f Merge "hwc_composer: Support of WFD Display." into jb 2012-08-09 03:11:01 -07:00
Andrew Sutherland
afbad35c4d comment -Werror
Change-Id: I832ebc8cb985f6c7d3d84cbde5a8611d3d10e9a0
2012-08-09 01:09:14 -05:00
Linux Build Service Account
efffb6d431 Merge "display: Add function to query GPU supported formats" into jb 2012-08-08 21:08:19 -07:00
Amara Venkata Mastan Manoj Kumar
211f9f4144 hwc_composer: Support of WFD Display.
1. WFD Event Detection.
    2. WFD/HDMI Priority Decision.
    3. Configure HWC for WFD Connect/Disconnect.

Change-Id: I1c1bbae449ce38d9b32e8e2bd66d14ae98468c49
2012-08-08 20:30:11 -06:00
Arun Kumar K.R
9813cf3bdc hwcomposer: Store device orientation in hwc context
Instead of determining the device orientation based on the
layer orientation, use the value which comes from the framework

CRs-fixed: 382796
Change-Id: I83e87534fbfc62740a411f1324b2c12e88434b41
2012-08-08 10:53:29 -07:00
Andrew Sutherland
8d111e9b7f Merge remote-tracking branch 'caf/jb' into jelly
Conflicts:
	common.mk

Change-Id: I512d7e14264192b716e0c5921b685e995853d4f6
2012-08-07 22:00:43 -05:00
Sravan Kumar D.V.N
c1e7e4861a display : Enable vsync for MDP3 targets
-Enable vsync for MDP3 targets
-With this change all targets except 8x55,
 have vsync enabled

Change-Id: Ic0856359a28c730948d7d74427f6802ed89cc1b1
2012-08-07 14:52:57 +05:30
andrew.boren
082c723cf0 qcom/display: Fix for copybit_c2d, Add USE_ION ifdef.
Change-Id: Ie6180e4cc73d1b7e3a96702bcba9f4a204b96a57
2012-08-06 13:42:02 -05:00
Naseer Ahmed
dca358d571 display: Add function to query GPU supported formats
Change-Id: I6521261fd1e66ee63c7c81c8ff0351fb2fb21984
2012-08-04 18:48:55 -07:00
Jeykumar Sankaran
7c86dfe139 libhwcomposer: Reset composition types on idle timeout.
SurfaceFlinger re-creates HWC worklist only for new frame and on
 layer geometry change. Invalidate triggered by idle timeout
 refreshes the existing worklist retaining its previous
 composition type. So its MDP comp's responsibility to clear
 layer composition types to HWC_FRAMEBUFFER on timeout.

Change-Id: Ibf11dd6c12c647c75d36d8cbad408c3ea70588bd
2012-08-04 13:15:23 -07:00
Arun Kumar K.R
2d0ecf80e6 libgralloc: include kernel headers
Change-Id: If0a4983b7344e1ca58b316e0cb0cc964d1235946
2012-08-04 13:10:55 -07:00
Linux Build Service Account
27157148fb Merge "hwc: video: Update destination x, y" into jb 2012-08-04 03:53:22 -07:00
Linux Build Service Account
bce9dcfb5a Merge "display: Fix warnings, make warnings as errors" into jb 2012-08-03 04:47:26 -07:00
Andrew Sutherland
f65d6e2124 qdutils: temp hack for qsd8k until kernel is fixed
Change-Id: I8c2bdbd3878e6e9ad2bf6ed0bea6c7778fb46979
2012-08-02 23:22:55 -05:00
Ricardo Cerqueira
9fbe261265 overlay: Allow disabling secure playback
If the device's kernel isn't fully prepared for secure content
playback, having the secure field in the msm_rotator_img_info
struct will cause issues while playing out video.

The correct set of patches to the kernel (MDP, maybe vidc) needs
to be figured out for this to be enabled; to disable it,
add QCOM_NO_SECURE_PLAYBACK to the device's CFLAGS. (and remove
"secure" from msm_rotator_img_info)

Change-Id: Ib1d265133e66ae456c59a9f78b052a01cbd00116
2012-08-02 23:22:49 -05:00
Andrew Sutherland
3786a1edc6 libcopybit: add support for qsd8k
Change-Id: Idc9baff4d81bb8211e943155769c435c76b38835
2012-08-02 23:16:45 -05:00
Andrew Sutherland
e25f40c946 bring back pmem/ashmem allocators
o removed RefBase usages
o ifdef for TARGET_USES_ION

Change-Id: Ief331f4c847b86be0e37d24983097af1f53234a2
2012-08-02 23:16:45 -05:00
Andrew Sutherland
becfd45151 build for QCOM_HARDWARE
Change-Id: Ie69feab2833d38153c3bb11c708a398629f088e2
2012-08-02 23:16:45 -05:00
Andrew Sutherland
87f0aec7e0 git checkout caf/jb . (starting over)
per be02ab0... display: Clean up gralloc

Change-Id: I3857046362703bacf3c4c1bcad831bfaa92387e7
2012-08-02 23:16:08 -05:00
Andrew Sutherland
1ccdbea036 Merge remote-tracking branch 'caf/jb' into jelly
Conflicts:
	common.mk
	libgralloc/alloc_controller.cpp
	libgralloc/pmem_bestfit_alloc.cpp
	libgralloc/pmemalloc.cpp
	libhwcomposer/hwc_external.cpp
	libqdutils/mdp_version.cpp

Change-Id: I1a0182faeb5e3c10153a5236434b55ff78b0eada
2012-08-02 23:02:46 -05:00
Arun Kumar K.R
0b44443a34 hwcomposer: fix the bug in setting connected status to ext display
the hdmi driver can send change uevent anytime, in which case, the
connected state was getting set to 0, due to its default value.

Change-Id: I22dc96acda0272661750277d62c5c11c5156fb3b
2012-08-02 11:06:43 -07:00
Naseer Ahmed
31dcb41d25 display: Fix warnings, make warnings as errors
Change-Id: I61f22765b04112be48e62135db930c415c9c7d37
2012-08-02 04:48:08 -07:00
Saurabh Shah
549f3b19d7 hwc: video: Update destination x, y
Update destination x, y after an out-of-bounds video's bounds are recalculated
for crop and destination position.

Change-Id: I5419f7ae054f709111c39d79ec721686f474ae53
2012-08-01 19:35:50 -06:00
Naseer Ahmed
be02ab0d74 display: Clean up gralloc
* Remove pmem and ashmem implementations
* Remove usage of RefBase
* Reduce log verbosity

Change-Id: If8ef543d236e5305bd5430f4f9c62c51b3a13787
2012-07-31 22:18:18 -06:00
Linux Build Service Account
6ad0635c7a Merge "liboverlay: Update format translation." into jb 2012-07-31 20:47:24 -07:00
Saurabh Shah
a710720dbd liboverlay: Remove waitForVsync, getOvPipeType APIs
Remove waitForVsync support.
Vsync will be done explicitly by clients outside of overlay.

Remove support for the unused getOvPipeType API.
Remove redundant state checks in class Overlay

Change-Id: I34f00e1334bbd9fad130bdefeaf0426ebbd638a1
2012-07-31 14:09:33 -07:00
Neti Ravi Kumar
97d3484b12 libhwcomposer: Add C2D support to copybit
Change-Id: Icb1a010f8079bb3f2122d8520c87d60b757d73bd
2012-07-31 10:36:51 +05:30
Saurabh Shah
f08d84f218 liboverlay: Update format translation.
Update format translation from HAL to MDP.
Add support for RGB_888, YCbCr_444_SP, YCrCb_444_SP formats.

Change-Id: I6323cd07bfe74c7cc60bf2b59dd81e2ae8a2ce27
2012-07-30 13:56:28 -07:00
Ethan Chen
fc740d06a4 display: disable hwcomposer logspam
Change-Id: I71e912218932c66852424c47d98c384ed21344c2
2012-07-30 13:36:10 -05:00
Ricardo Cerqueira
92b683627a overlay: Allow disabling secure playback
If the device's kernel isn't fully prepared for secure content
playback, having the secure field in the msm_rotator_img_info
struct will cause issues while playing out video.

The correct set of patches to the kernel (MDP, maybe vidc) needs
to be figured out for this to be enabled; to disable it,
add QCOM_NO_SECURE_PLAYBACK to the device's CFLAGS. (and remove
"secure" from msm_rotator_img_info)

Change-Id: I7949e918163e0acb2d6eb3d8881b04fb07b2be2c
2012-07-29 23:35:28 -05:00
Andrew Sutherland
3684704af4 copybit: makefile remove DEBUG_MDP_ERRORS define
* already defined is copybit.cpp

Change-Id: I99929f2a40e0cdd42c67966cfbff71a43dcb7848
2012-07-29 22:43:31 -05:00
Andrew Sutherland
124b191c09 Revert "hwc_copybit: temp hack for working display"
This reverts commit c0e59806e6.
2012-07-29 22:01:48 -05:00
Prabhanjan Kandula
8d90904f86 HDMI: Fallback to MM heap.
- IOMMU heap is not available for all targets. we should
  have a fallback heap always as IOMMU can be disabled.

Change-Id: I7e987ac69ba5e5fdd6228b50930e064a4420a472
2012-07-27 08:24:30 -07:00
Saurabh Shah
bf3c454efe hwc: Add support for external-only layers
Add support for different types of external-only layers
EXTERNAL_ONLY: General purpose
EXTERNAL_BLOCK: Blocks the display of other ext-only layers
EXTERNAL_CC: Used for closed captions with videos.

Change-Id: I7cb531a55a2f0015e3a51673faf08941bcea1923
2012-07-27 08:24:25 -07:00
Saurabh Shah
446b936947 overlay: Refactor State Transitions.
Refactor transitions by templatizing to have default behavior for most cases
and full specializations for specific cases.
Partial specialization of functions is not allowed, so create templatized
intermediate functions for those use cases.
For ex: if we have 8 states, we don't need 8x8 transition handlers.

Add and define OV_DUAL_DISPLAY state.
Add a GenericPipe for subtitles to OV_2D_VIDEO_ON_PANEL_TV state.
Add a 2D_VIDEO_ON_TV state and its transitions.

Change-Id: I53b017b9a41db5894c263ccb446b7ec8875ef3aa
2012-07-27 08:24:19 -07:00
Naseer Ahmed
32dd0125d9 hwc: Disable HW vsync for some targets
7x27A, 8x25 and 8x55 do not support HW vsync yet.
This change checks for their MDP version and disables HW vsync
on them. This change should be reverted once hardware vsync is
available on these targets.

Change-Id: I0cb884f571346b3595169cb4b3c01bbdb7ecaaee
2012-07-27 08:23:50 -07:00
Naseer Ahmed
912842f62d display: Get panel type from framebuffer
Change-Id: I5dc16125bbb7d864dcb7106166e91b950a44d686
2012-07-27 08:23:40 -07:00
Jeykumar Sankaran
bd86fcfff6 display: Add support for MDP Composition
This change
   1) implements MDP Composition upto 3 layers
   2) adds invalidator support to fall back to FB
      composition during idle screen condition.

Change-Id: I8d724f905c943f986b68596e2548a7f5a8ce6588
2012-07-27 08:23:34 -07:00
Arun Kumar K.R
a72904b1dc hwc: enable vsync for external display
- wait for hdmi vsync when connected to hdmi
- add commit to call PANDISPLAY for updating ext display
- add functions to close fb and reset info

Change-Id: Icdd3620bd9d15240a88a26a3f1bf9c07d58d011b
2012-07-27 08:23:30 -07:00
Naseer Ahmed
9ccb3975c7 display: Enable vsync
* Use the vsync uevents from the kernel to start
surfaceflinger composition.
* This patch also does some code cleanup
    - Move copybit specific functions to copybit files.
    - Cleanup verbose logging.
Change-Id: I8ca3cd7a7ceb53655ed0fcf39ac2cb35e6cbe890
2012-07-27 08:23:23 -07:00
Andrew Sutherland
c0e59806e6 hwc_copybit: temp hack for working display
Change-Id: Ie564fa6876f860f70bb8d34b54b1fa8d6fcac05e
2012-07-24 23:13:21 -05:00