summaryrefslogtreecommitdiff
path: root/hwc/hwc.c
AgeCommit message (Collapse)Author
2012-12-03Panda: Set lcd_xpy to 1 if the x/y res and dimensions are not setDan Murphy
Since the panda uses HDMI and DVI only there is no setting to indicate the x/y res or dimensions. There fore if these values are not set in the kernel set the lcd_xpy to 1 Change-Id: I538eb0fc059daebfa3fe125cbdf0b70eb51f1616 Signed-off-by: Dan Murphy <dmurphy@ti.com>
2012-09-12HWC field was renamedJesse Hall
Change-Id: If08258776db427c45d9ba70cfa79f4d290398ca6
2012-08-22Update for cleanups in hwc interfaceJesse Hall
Change-Id: I7851cd5ca7cd826b3b4b35e6df90ce1e2a9f4327
2012-08-21Update the omap4xxx HWC to use the 1.0 interfacesAndy McFadden
Switch to HWC_DEVICE_API_VERSION_1_0 and the corresponding structures. This change removes special-case handling for Panda, which was using v0.2. This will likely break the Panda display. Change-Id: Id9ba6910ae2285d116f697bfa5af2c1f6b022ce0
2012-08-02OMAP4:Panda: Use old hwcomposer API version for pandaDan Murphy
The hwcomposer for OMAP4 is generic to the all OMAP4 processors. Panda does not support Vsync protocal which is expected when the HAL declares an API support level of 0.3. Therefore indicate to the upper layers that if the product is panda then only API level 0.2 is supported which then forces upper layers to fake the vsync signal Change-Id: I22a39f55ea017ced25424556ffc95b099d0a2781 Signed-off-by: Dan Murphy <dmurphy@ti.com>
2012-05-21hwc: Fix truncation errors in scaling decisionLajos Molnar
When checking if we are downscaling beyond what the hardware supports, we were dividing by the factors rather than multiplying the other side with them. The truncation of the divisions had hwc allowing downscaling by a factor slightly larger than what was supported. Change-Id: I6ae4d897f4afe68ae26f0d7385e4003d6f2a4253 Signed-off-by: Lajos Molnar <lajos@ti.com>
2012-04-18WORKAROUND for Bug:5965421Mathias Agopian
looks like certain scaling factor cause the overlay engine to go all black. Limit the vertical downsampling to 4x instead of 8x Change-Id: I9034fb99b64c6936059970553b24eba5c941ebdd
2012-04-11hwc: add handling for new style vsync eventsErik Gilling
Change-Id: Ia435c57e0938826206010a3bdb58bcefe4201405
2012-04-05add API 0.3 support to HWC HAL.Mathias Agopian
this includes support for VSYNC Change-Id: I14b8b133b29b0b6c825d67d18d5262843ca6bd96
2012-04-03Merge commit '04512dd'Mike Lockwood
Conflicts: hwc/hwc.c Change-Id: I8e55acb05f4f01aa404296fd200286b4a435e3f9
2012-03-26update to new versioning schemeMathias Agopian
Change-Id: I53feed711d7c347da116a91e10228cb6555a1e77
2012-03-21hwc: pull down 32 modes instead of 16, some panels have a lotTravis Geiselbrecht
Change-Id: I8707839bdf49278a7f62376a9bb5a8cb36f2a4de
2012-03-21DO NOT MERGEDandawate Saket
hwc: Add support for FB scaling and cloning Patch contains following features 1)Large frame buffer support: Transformation matrix for LCD and HDMI added to ensure correct composition and renderring of all UI layers Added support for overlay distrubution based on FB size and target display 2)Default HDMI display support Support for default HDMI display selection. Added HDMI best mode selection on HPD Change-Id: I1123607d07830921fbb28336b40fa4e0c78c3097 Signed-off-by: Dandawate Saket <dsaket@ti.com> Signed-off-by: Lajos Molnar <molnar@ti.com> Signed-off-by: Muralidhar Dixit <murali.dixit@ti.com>
2012-01-24don't vsync after swap since SF now is vsync'edMathias Agopian
Change-Id: I2e0636c3a386203e0aaee8c97b1affa4ee96f699
2012-01-08Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block
See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: I7d131473964d92c62a495d082a1207867f435885
2012-01-05Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGESteve Block
See https://android-git.corp.google.com/g/157065 Bug: 5449033 Change-Id: I71aea6795e3ed22beacb9a8f5774499e96c69a4d
2012-01-04Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGESteve Block
See https://android-git.corp.google.com/g/156801 Bug: 5449033 Change-Id: Ib3b6ce6a89755e29aa9f830e9185064c25dd138e
2012-01-03Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block
See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I551e5a040249a8908251cd8c8d7131287f1f53de
2011-12-13am 40e6beac: am 449e98a9: hwc: set FB z-order when there are no hwc layersLajos Molnar
* commit '40e6beac1e9977ff2ca763e6e8abcc2463fa76cf': hwc: set FB z-order when there are no hwc layers
2011-12-13am c7bdd444: am 0aead355: hwc: added static image supportLajos Molnar
* commit 'c7bdd44463cd9b32a3d6a5647beaff541a5e29f7': hwc: added static image support
2011-12-13am 252f905d: am 12c821db: hwc: update to new addressing mode handlingErik Gilling
* commit '252f905d197c5f385d21686a4368ab1114b84e39': hwc: update to new addressing mode handling
2011-12-13hwc: set FB z-order when there are no hwc layersandroid-sdk-4.0.3_r1Lajos Molnar
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>
2011-12-13hwc: added static image supportLajos Molnar
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>
2011-12-13hwc: update to new addressing mode handlingErik Gilling
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
2011-12-12am 04a0e38d: am 2b86fd0c: hwc: add support for forced docking (in the dock)Lajos Molnar
* commit '04a0e38d7c4d8a94fbc84eac36cb6d06412cd7b7': hwc: add support for forced docking (in the dock)
2011-12-12am 5119962c: am e14d5293: hwc: extract HDMI mode scoring functionLajos Molnar
* commit '5119962cd2520a3e4d3f2a2a15d6596c28fba04f': hwc: extract HDMI mode scoring function
2011-12-12am 20e79c05: am 3837de4f: hwc: refactor prepare: extract out hdmi cloning ↵Lajos Molnar
methods * commit '20e79c05615092da8f48d8ca41745d0c9c5479ce': hwc: refactor prepare: extract out hdmi cloning methods
2011-12-12am 25487b34: am 44a0023d: hwc: refactor prepare: separate gathering layer ↵Lajos Molnar
statistics and cloning decision * commit '25487b340cdb1cf93882d874858615872c2035de': hwc: refactor prepare: separate gathering layer statistics and cloning decision
2011-12-12am 53d3c74d: am 3797fa98: hwc: use LCD\'s pixel aspect ratioLajos Molnar
* commit '53d3c74d3113a666167062afa15be6d447ae7361': hwc: use LCD's pixel aspect ratio
2011-12-12am 226ff52b: am 00d8485d: hwc: minor code cleanupLajos Molnar
* commit '226ff52b58437487ac65c8fa853fe6c646d3d468': hwc: minor code cleanup
2011-12-12am e10ef2cd: am b81fb68c: hwc: simplify layer hint settingLajos Molnar
* commit 'e10ef2cd8f619915d9638b5b5178ceae23520290': hwc: simplify layer hint setting
2011-12-12am c8124479: am 5706ba0d: hwc: simplify color format handlingLajos Molnar
* commit 'c8124479e9a96661bc6394456c5a8b7e8e869e94': hwc: simplify color format handling
2011-12-12am d4d10c5f: am b79b42d1: hwc: cleanup: fix spacing, removed dead codeLajos Molnar
* commit 'd4d10c5f5080ca01469ebf8429bb3c164a6f9856': hwc: cleanup: fix spacing, removed dead code
2011-12-12am bda528cf: am 734de7a7: hwc: cleanup: cleaned up debug messagesLajos Molnar
* commit 'bda528cf43b2d7ca91fd9da3ebb08e5166fa7cfc': hwc: cleanup: cleaned up debug messages
2011-12-12am 8fc542ad: am e055e4bf: hwc: cleanup: resolve compiler warningsLajos Molnar
* commit '8fc542adafd4ac4e94d24b75e5e1bf4b3f64f1ba': hwc: cleanup: resolve compiler warnings
2011-12-12am cc230bb4: am cb64c2be: hwc: remove name collision for DISPLAY_SETUP_DISPLAYLajos Molnar
* commit 'cc230bb412aa0bba51d0ca32cc82d1555538e392': hwc: remove name collision for DISPLAY_SETUP_DISPLAY
2011-12-12am 085c0e54: am a752a6ad: hwc: Fix calculation of on_tvLajos Molnar
* commit '085c0e5468f3ba46f42749f84828cfd3ec6a7b78': hwc: Fix calculation of on_tv
2011-12-12am 4b9a8e20: am 4b267e18: hwc: fix issues handling force_sgxLajos Molnar
* commit '4b9a8e20618eab9b5a581a97586c5808f8571d28': hwc: fix issues handling force_sgx
2011-12-08hwc: add support for forced docking (in the dock)Lajos Molnar
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>
2011-12-08hwc: extract HDMI mode scoring functionLajos Molnar
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
2011-12-08hwc: refactor prepare: extract out hdmi cloning methodsLajos Molnar
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
2011-12-08hwc: refactor prepare: separate gathering layer statistics and cloning decisionLajos Molnar
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
2011-12-08hwc: use LCD's pixel aspect ratioLajos Molnar
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>
2011-12-08hwc: minor code cleanupLajos Molnar
Change-Id: I51434effcb688fa065bdd422a721282b05a192f4
2011-12-08hwc: simplify layer hint settingLajos Molnar
Set HWC_CLEAR_FB hints in the main loop. Change-Id: I9fb0e4241b9d3975422070daeef0706d954947b2
2011-12-08hwc: simplify color format handlingLajos Molnar
use handle instead of handle->format for most format checker methods incorporate blending handling check into omap4_hwc_setup_layer_base Change-Id: I336b3063c162733151f403b5c3de06699fcc3404
2011-12-08hwc: cleanup: fix spacing, removed dead codeLajos Molnar
Change-Id: Ie36e79f80bc610b75361f592c6ed7a028e877cd5
2011-12-08hwc: cleanup: cleaned up debug messagesLajos Molnar
Change-Id: Idf7a0623dd5559cc1273389a5a673b28a8be39f6
2011-12-08hwc: cleanup: resolve compiler warningsLajos Molnar
Removed compiler warnings Change-Id: I5b6da58e48e526ccceada1cbe89291275b62c60f
2011-12-08hwc: remove name collision for DISPLAY_SETUP_DISPLAYLajos Molnar
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>