summaryrefslogtreecommitdiffstats
path: root/hwc
Commit message (Collapse)AuthorAgeFilesLines
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-26/+26
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: I7d131473964d92c62a495d082a1207867f435885
* Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGESteve Block2012-01-051-4/+4
| | | | | | | See https://android-git.corp.google.com/g/157065 Bug: 5449033 Change-Id: I71aea6795e3ed22beacb9a8f5774499e96c69a4d
* Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGESteve Block2012-01-041-3/+3
| | | | | | | See https://android-git.corp.google.com/g/156801 Bug: 5449033 Change-Id: Ib3b6ce6a89755e29aa9f830e9185064c25dd138e
* Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-031-11/+11
| | | | | | | See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I551e5a040249a8908251cd8c8d7131287f1f53de
* am 40e6beac: am 449e98a9: hwc: set FB z-order when there are no hwc layersLajos Molnar2011-12-131-2/+5
|\ | | | | | | | | * commit '40e6beac1e9977ff2ca763e6e8abcc2463fa76cf': hwc: set FB z-order when there are no hwc layers
| * hwc: set FB z-order when there are no hwc layersLajos Molnar2011-12-131-2/+5
| | | | | | | | | | | | | | | | When there are no layers passed to hwc, FB is still used, and z-order must be set. Change-Id: I7e45f56468b47712f7686b78ba0650943037c64a Signed-off-by: Lajos Molnar <lajos@ti.com>
* | am c7bdd444: am 0aead355: hwc: added static image supportLajos Molnar2011-12-132-3/+169
|\ \ | |/ | | | | | | * commit 'c7bdd44463cd9b32a3d6a5647beaff541a5e29f7': hwc: added static image support
| * hwc: added static image supportLajos Molnar2011-12-132-3/+169
| | | | | | | | | | | | | | | | Display static image if connected to portrait dock and there are no dockable layers. Change-Id: I572cf9ef5bf66ac194c3a83920a8de3be1e6d4e4 Signed-off-by: Lajos Molnar <lajos@ti.com>
* | am 252f905d: am 12c821db: hwc: update to new addressing mode handlingErik Gilling2011-12-131-4/+6
|\ \ | |/ | | | | | | * commit '252f905d197c5f385d21686a4368ab1114b84e39': hwc: update to new addressing mode handling
| * hwc: update to new addressing mode handlingErik Gilling2011-12-131-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | Specify Post2 and cloned layers. Fix potential overflow in zorder of cloned (dock) layer. Change-Id: I534fe30e6b90415070824ceb7abff65e9b93c9ec Signed-off-by: Lajos Molnar <lajos@ti.com> Conflicts: hwc/hwc.c
* | am 04a0e38d: am 2b86fd0c: hwc: add support for forced docking (in the dock)Lajos Molnar2011-12-121-7/+30
|\ \ | |/ | | | | | | * commit '04a0e38d7c4d8a94fbc84eac36cb6d06412cd7b7': hwc: add support for forced docking (in the dock)
| * hwc: add support for forced docking (in the dock)Lajos Molnar2011-12-081-7/+30
| | | | | | | | | | | | | | | | If the dock switch is set high, mirroring is disabled and docking transformation is set to 0. Change-Id: Ief0f14874459f3ff435e6b43088f524af322524f Signed-off-by: Lajos Molnar <lajos@ti.com>
* | am 5119962c: am e14d5293: hwc: extract HDMI mode scoring functionLajos Molnar2011-12-121-24/+49
|\ \ | |/ | | | | | | * commit '5119962cd2520a3e4d3f2a2a15d6596c28fba04f': hwc: extract HDMI mode scoring function
| * hwc: extract HDMI mode scoring functionLajos Molnar2011-12-081-24/+49
| | | | | | | | | | | | | | | | | | | | | | Separate HDMI mode scoring function so that it is easier to modify. Also changed scoring function to be cumulative instead of absolute, so that priorities of the sub-scores can be easily changed. Change-Id: I3f803c13c1482653b8a3fb26a47a8fefecc51b4b
* | am 20e79c05: am 3837de4f: hwc: refactor prepare: extract out hdmi cloning ↵Lajos Molnar2011-12-121-92/+108
|\ \ | |/ | | | | | | | | | | methods * commit '20e79c05615092da8f48d8ca41745d0c9c5479ce': hwc: refactor prepare: extract out hdmi cloning methods
| * hwc: refactor prepare: extract out hdmi cloning methodsLajos Molnar2011-12-081-92/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extract setting up mirroring into setup_mirroring(). Extract cloning an overlay into clone_layer(). Extract cloning an external layer into clone_external_layer(). This also sets up the transformation for that layer. Remove omap4_hwc_create_ext_matrix as it was nearly the same as setup_mirroring(). Move missing functionality (VGA default) into omap4_hwc_set_best_hdmi_mode(). Removed forced "common" cloning loop for mirroring and docking support. Instead implement them using the extracted functions. Change-Id: I3d53397f6f5c98d1f1c512b7098f5a1c495dd93f
* | am 25487b34: am 44a0023d: hwc: refactor prepare: separate gathering layer ↵Lajos Molnar2011-12-121-44/+77
|\ \ | |/ | | | | | | | | | | statistics and cloning decision * commit '25487b340cdb1cf93882d874858615872c2035de': hwc: refactor prepare: separate gathering layer statistics and cloning decision
| * hwc: refactor prepare: separate gathering layer statistics and cloning decisionLajos Molnar2011-12-081-44/+77
| | | | | | | | | | | | | | | | | | | | | | Extract logic that gathers layer statistics into gather_layer_statistics(). Extract logic that decides supported cloning configuration into decide_supported_cloning(). Move prepare log to end of function. Change-Id: I9bf3a5a1072b9d548da039e25739009dfb5ba06e
* | am 53d3c74d: am 3797fa98: hwc: use LCD\'s pixel aspect ratioLajos Molnar2011-12-121-7/+8
|\ \ | |/ | | | | | | * commit '53d3c74d3113a666167062afa15be6d447ae7361': hwc: use LCD's pixel aspect ratio
| * hwc: use LCD's pixel aspect ratioLajos Molnar2011-12-081-7/+8
| | | | | | | | | | | | | | | | Now that LCD provides its dimension, use it instead of assuming 1:1 pixel ratio. Change-Id: I92e90132986aed66d43165d181789efaa2369bbd Signed-off-by: Lajos Molnar <molnar@ti.com>
* | am 226ff52b: am 00d8485d: hwc: minor code cleanupLajos Molnar2011-12-121-20/+21
|\ \ | |/ | | | | | | * commit '226ff52b58437487ac65c8fa853fe6c646d3d468': hwc: minor code cleanup
| * hwc: minor code cleanupLajos Molnar2011-12-081-20/+21
| | | | | | | | Change-Id: I51434effcb688fa065bdd422a721282b05a192f4
* | am e10ef2cd: am b81fb68c: hwc: simplify layer hint settingLajos Molnar2011-12-121-27/+9
|\ \ | |/ | | | | | | * commit 'e10ef2cd8f619915d9638b5b5178ceae23520290': hwc: simplify layer hint setting
| * hwc: simplify layer hint settingLajos Molnar2011-12-081-27/+9
| | | | | | | | | | | | Set HWC_CLEAR_FB hints in the main loop. Change-Id: I9fb0e4241b9d3975422070daeef0706d954947b2
* | am c8124479: am 5706ba0d: hwc: simplify color format handlingLajos Molnar2011-12-121-43/+69
|\ \ | |/ | | | | | | * commit 'c8124479e9a96661bc6394456c5a8b7e8e869e94': hwc: simplify color format handling
| * hwc: simplify color format handlingLajos Molnar2011-12-081-43/+69
| | | | | | | | | | | | | | use handle instead of handle->format for most format checker methods incorporate blending handling check into omap4_hwc_setup_layer_base Change-Id: I336b3063c162733151f403b5c3de06699fcc3404
* | am d4d10c5f: am b79b42d1: hwc: cleanup: fix spacing, removed dead codeLajos Molnar2011-12-121-57/+47
|\ \ | |/ | | | | | | * commit 'd4d10c5f5080ca01469ebf8429bb3c164a6f9856': hwc: cleanup: fix spacing, removed dead code
| * hwc: cleanup: fix spacing, removed dead codeLajos Molnar2011-12-081-57/+47
| | | | | | | | Change-Id: Ie36e79f80bc610b75361f592c6ed7a028e877cd5
* | am bda528cf: am 734de7a7: hwc: cleanup: cleaned up debug messagesLajos Molnar2011-12-121-88/+100
|\ \ | |/ | | | | | | * commit 'bda528cf43b2d7ca91fd9da3ebb08e5166fa7cfc': hwc: cleanup: cleaned up debug messages
| * hwc: cleanup: cleaned up debug messagesLajos Molnar2011-12-081-88/+100
| | | | | | | | Change-Id: Idf7a0623dd5559cc1273389a5a673b28a8be39f6
* | am 8fc542ad: am e055e4bf: hwc: cleanup: resolve compiler warningsLajos Molnar2011-12-121-5/+7
|\ \ | |/ | | | | | | * commit '8fc542adafd4ac4e94d24b75e5e1bf4b3f64f1ba': hwc: cleanup: resolve compiler warnings
| * hwc: cleanup: resolve compiler warningsLajos Molnar2011-12-081-5/+7
| | | | | | | | | | | | Removed compiler warnings Change-Id: I5b6da58e48e526ccceada1cbe89291275b62c60f
* | am cc230bb4: am cb64c2be: hwc: remove name collision for DISPLAY_SETUP_DISPLAYLajos Molnar2011-12-121-4/+4
|\ \ | |/ | | | | | | * commit 'cc230bb412aa0bba51d0ca32cc82d1555538e392': hwc: remove name collision for DISPLAY_SETUP_DISPLAY
| * hwc: remove name collision for DISPLAY_SETUP_DISPLAYLajos Molnar2011-12-081-4/+4
| | | | | | | | | | | | | | | | This was defined both as an enum (flag) and as a define. It is now separated in dsscomp.h Change-Id: I1626842b9c3b22588d0d5a48e4509e1bc353eaab Signed-off-by: Lajos Molnar <molnar@ti.com>
* | am 085c0e54: am a752a6ad: hwc: Fix calculation of on_tvLajos Molnar2011-12-121-2/+2
|\ \ | |/ | | | | | | * commit '085c0e5468f3ba46f42749f84828cfd3ec6a7b78': hwc: Fix calculation of on_tv
| * hwc: Fix calculation of on_tvLajos Molnar2011-12-081-2/+2
| | | | | | | | | | | | We are only on TV if we are actually cloning to external display. Change-Id: I4a6cb7a58f5a00b71cf18c0cd3927bbec0fe74a1
* | am 4b9a8e20: am 4b267e18: hwc: fix issues handling force_sgxLajos Molnar2011-12-121-13/+12
|\ \ | |/ | | | | | | * commit '4b9a8e20618eab9b5a581a97586c5808f8571d28': hwc: fix issues handling force_sgx
| * hwc: fix issues handling force_sgxLajos Molnar2011-12-081-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were a couple of incorrect fixes to force_sgx handling that are fixed by this patch. 1. no need to disable force_sgx if there are protected layers. We only need to route protected layer to DSS. 2. dockable layer must be rendered via DSS (or force_sgx must be disabled, although that reduces power savings) if we are in docking mode. Prior fix of cloning an arbitrary layer as the docking layer was incorrect (as it was doing UI mirroring), and was calculating the layer index incorrectly. 3. forcing sgx rendering actually increases power if there is only one layer. Change-Id: I121747ed06834f870e0f0793d38bf4e77f969858 Signed-off-by: Lajos Molnar <molnar@ti.com>
* | am 2f9d236b: am b1c5d8ef: HWC: Only invalidate on idle when blendingJamie Gennis2011-11-111-9/+27
|\ \ | |/ | | | | | | * commit '2f9d236b408d1209bc97f1b45951b9e21adef542': HWC: Only invalidate on idle when blending
| * HWC: Only invalidate on idle when blendingJamie Gennis2011-11-111-9/+27
| | | | | | | | Change-Id: I6e07129502f59f26768895c30dcdb50b01011738
| * HWC: Fix for dock mode setupSunita Nadampalli2011-10-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | The dock plane index is set correctly, in the scenario where there is no HW accelerated overlays. Earlier in this scenario, where all the layers were composed by SGX (no layer for HW acceleration), and the external display was setup for DOCK mode, the dock_layer index was left undefined (-1) and hence the behavior was unpredictable. Change-Id: I69ff7795080f3257db70b5a6a143afca53924524 Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
* | Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGESteve Block2011-10-251-1/+1
| | | | | | | | | | | | | | See https://android-git.corp.google.com/g/#/c/143865 Bug: 5449033 Change-Id: Ic854588fa661ebcc63395c388bf98af268b709c7
* | HWC: Fix for dock mode setupSunita Nadampalli2011-10-231-0/+3
|/ | | | | | | | | | | | The dock plane index is set correctly, in the scenario where there is no HW accelerated overlays. Earlier in this scenario, where all the layers were composed by SGX (no layer for HW acceleration), and the external display was setup for DOCK mode, the dock_layer index was left undefined (-1) and hence the behavior was unpredictable. Change-Id: I69ff7795080f3257db70b5a6a143afca53924524 Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
* HWC: Disable SGX force usage if protected layer is detected.Sunita Nadampalli2011-10-191-0/+13
| | | | | | | | | | | | Fixes b/5475085 In secure playback mode, SGX does not have access to protected buffers and a forced SGX usage results in an invalid frame to be rendered and displayed. This patch disables SGX force usage if any of the layers is protected. Change-Id: I188cf1639050687a96df42b310c12875fec383f7 Signed-off-by: Sunita Nadampalli <sunitan@ti.com> Signed-off-by: Iliyan Malchev <malchev@google.com>
* hwc: avoid changing HDMI modesLajos Molnar2011-10-171-9/+18
| | | | | | | | | | | | | Prefer to use the same mode for docking as used for mirroring. This avoids changing modes when playing low resolution videos, but may produce worse quality on some TVs. Added persist.hwc.avoid_mode_change property (default 1) so that this behavior can be disabled. Also, reworked mode scoring so that each term can be easily reordered. Change-Id: Ie25aa4dba11d3922e510257e7a8e88d2379bb6d7
* hwc: only set HDMI mode if it changedLajos Molnar2011-10-171-1/+7
| | | | | | | Reduce delays while reconfiguring HDMI mode if the mode doesn't actually change. Change-Id: I72f30074f09a6440e12c9eff33bd5f71b8f37e85
* hwc: add tolerance to video aspect ratio changesLajos Molnar2011-10-171-1/+2
| | | | | | | | | Slight changes in the aspect ratio of the external layer occur when the layer is resized on screen due to rounding errors. Add tolerance, so we do not reconfigure HDMI due to these slight changes. Change-Id: I4b1b4c5dfb80ebbd83e26eb78dd86269b756307c
* Revert "Revert "hwc: fallback on GL after idle for power savings""Mathias Agopian2011-10-171-5/+70
| | | | This reverts commit fe265d600bd8d8f17df5f0f0b387dbd4608562e8.
* Revert "hwc: fallback on GL after idle for power savings"Mathias Agopian2011-10-151-70/+5
| | | | | | | This reverts commit c56ae9077b825d952a6498bd25afdfc4b344f929. We believe this change is triggering another bug causing hangs. Change-Id: I91cae91fbbfdde195a98ea7e14562cfc5894d466
* hwc: fallback on GL after idle for power savingsErik Gilling2011-10-121-5/+70
| | | | | | | | If no frame has been posted for 250ms, rerender using GL to take load off the overlay engine. Change-Id: I1790f7b7b43fd0d60b7392b9aec01339234aa915 Signed-off-by: Erik Gilling <konkers@android.com>