Commit Graph

82 Commits

Author SHA1 Message Date
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
Andrew Sutherland
37f4aeb3c6 hwc_copybit: add back adsp heap usage
Change-Id: I0204a0a5181043097a00925b50386cf612d88f07
2012-07-24 23:13:14 -05:00
Andrew Sutherland
0f24916293 display: fixup ion ifdef again
switch back to TARGET_USES_ION (to be more inline with cm and a frameworks
change forces it to be defined anyway)

Change-Id: Ibc90a8ab0f7ff3477e149ee69489686f94476fec
2012-07-24 12:21:50 -05:00
Andrew Sutherland
a91c998940 Merge remote-tracking branch 'caf/jb' into jb
Conflicts:
	libcopybit/Android.mk
	libgralloc/Android.mk
	libgralloc/framebuffer.cpp

Change-Id: I61d48a930d840a5edd659527cc2ebbe3ff84ee3b
2012-07-24 12:18:55 -05:00
Andrew Sutherland
e5a6a4d1bb qcom/display: qsd8k mdp version hack
Change-Id: I214c68d21113eb8755ba8a44327f6f27a945addc
2012-07-23 20:49:59 -05:00
Naseer Ahmed
c0872eecdd framebuffer: Fix locking
The gralloc locking did not lock
the framebuffer. Use genlock to
lock the framebuffers.

Change-Id: Ie8be6f7950f6df06a2293c3df863e19cd5386479
2012-07-23 18:58:39 -05:00
Ricardo Cerqueira
f08c954f02 Allow compatibility with ICS EGL for OMX
The new headers define the qcom video buffer format
(HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED) as 0x7FA30C03, ICS used 0x108.

Trying to play a video with the ICS Adreno driver results in
it rejecting the buffers because 2141391875 (0x7FA30C03) is an
unknown buffer format, so use the QCOM_ICS_COMPAT CFLAG to
fallback to the older enum.

Do NOT use this with JB Adreno blobs.

Change-Id: I2bd05c681718e916bd91311a4c9e503545f2e1bc
2012-07-22 00:34:51 -07:00
Linux Build Service Account
9c552477aa Merge "display : Add support for copybit composition" into jb 2012-07-21 03:07:17 -07:00