Commit Graph

39 Commits

Author SHA1 Message Date
Mathias Agopian 2e3a46c539 fallout of splitting rect.h out of libandroid.
Some makefiles didn’t specify libui but included 
headers from it directly, and they didn’t even
need them.

It works because these headers are on the global
include path. With this change, though, rect.h
is not anymore (albeit exported from libui).

Test: built and booted device
Bug: 35164655
Change-Id: Ib2de5e5a2f86bd857e12861bb6fc5e4739ff185a
2017-02-16 14:31:11 -08:00
Dan Albert 789f042d3c Fix -Wmacro-redefined werror issues.
The libc++ defines this (wrapped in ifndef, like this should have
been), so including a libc++ header and then defining this results in
a werror failure. Define this in common.mk so we can be sure it does
get defined, but also that it gets defined early enough that anyone
defining this in source wrapped with ifndef doesn't get broken.

Test: mma # on angler
Bug: http://b/34740564
Change-Id: Id7d70a6ad5e530390eb8b37e5e618312d1d7e6dc
2017-01-30 17:54:29 -08:00
Saurabh Shah 39e2edb6ef am afb0630f: qdutils: Parse rotator downscale feature
* commit 'afb0630fd38b3db0e01f243d3112d0b67a93976e':
  qdutils: Parse rotator downscale feature
2015-01-09 23:47:33 +00:00
Saurabh Shah b85206bf40 am 52c40f73: qdutils: Add getter for 8994
* commit '52c40f737665f00bf9ecd486b9896ce256c94fd2':
  qdutils: Add getter for 8994
2015-01-09 22:43:02 +00:00
Shalaj Jain f0faeb1116 am cfb96887: display: remove compiler warnings
* commit 'cfb968873b9e94dca883aadabee42b01558faea9':
  display: remove compiler warnings
2015-01-09 22:42:54 +00:00
Ramkumar Radhakrishnan 91a46f0a67 am 33f1ae81: hwc: Define binder interface to set view frame of a display
* commit '33f1ae81779c5b897987245cde0f498fd6192579':
  hwc: Define binder interface to set view frame of a display
2015-01-09 22:42:51 +00:00
Saurabh Shah caa23b5c69 am e095244a: hwc: Source Split layers always if indicated by driver
* commit 'e095244acd6350d0898d5a9b409dff2748553bfc':
  hwc: Source Split layers always if indicated by driver
2015-01-09 22:42:50 +00:00
Jeykumar Sankaran 003edc26c4 am 514cb6b3: hwc: Support single ROI for split panels.
* commit '514cb6b3f43dd8a3d743cbe68f333898d5e981b8':
  hwc: Support single ROI for split panels.
2015-01-09 22:42:20 +00:00
Jeykumar Sankaran 28b65f8692 am 6f763466: hwc: Extend partial frame update for split displays
* commit '6f7634666209698e4835b9f326278a7068834383':
  hwc: Extend partial frame update for split displays
2015-01-09 22:42:19 +00:00
Ajay Dudani b32a21afe6 am 591cee0e: display: Change LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH
* commit '591cee0efbca32ef210e9095f71941f5f89c29b1':
  display: Change LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH
2015-01-09 22:42:17 +00:00
Prabhanjan Kandula 5444d3ad4a am 26ca824f: qdutils : Add mdp revision for 8x39.
* commit '26ca824f5a1e6adb8038a103c27139c163bb0660':
  qdutils : Add mdp revision for 8x39.
2015-01-09 22:42:13 +00:00
Prabhanjan Kandula 6be7c33dd9 am 31944168: hwc : Enable partial update if panel supports it.
* commit '319441687b340d9963456dc79de5b6e16eaf36b3':
  hwc : Enable partial update if panel supports it.
2015-01-09 22:41:58 +00:00
Jeykumar Sankaran 0e507f24c0 am 29e3491d: h/q/d: Read minimum width and height values of the panel ROI
* commit '29e3491d8c71a426903f0194a9a40a75bde825b3':
  h/q/d: Read minimum width and height values of the panel ROI
2015-01-09 22:41:55 +00:00
Naseer Ahmed c31a67bfd8 am 3c3c2482: mdp_version: Check define for each version
* commit '3c3c2482b748934e34ed89214c7f94042c35b751':
  mdp_version: Check define for each version
2015-01-09 22:41:50 +00:00
Ray Zhang 619c7c8d2b am eff8db6f: qdutils: correct error checking of MetaData\'s handle mapping
* commit 'eff8db6f524a1390fa94dcdde5f3d827bf469e89':
  qdutils: correct error checking of MetaData's handle mapping
2015-01-09 22:41:48 +00:00
Saurabh Shah afb0630fd3 qdutils: Parse rotator downscale feature
Parse rotator downscale feature from the capabilities sysfs node

Change-Id: I346a20d4879682e115eb2f8f74afd41dca31e930
2015-01-09 14:18:06 -08:00
Saurabh Shah 52c40f7376 qdutils: Add getter for 8994
Add version and getter for 8994

Change-Id: I95a8e4518a763651d7ce3865075fac80d4b3c60b
2015-01-09 14:18:06 -08:00
Shalaj Jain cfb968873b display: remove compiler warnings
Use correct typecasts and format specifiers and resolve
compiler warnings

Change-Id: I51b12ecb78a9a496cf1f76c3d32892a203f70c43
2015-01-09 14:18:05 -08:00
Ramkumar Radhakrishnan 33f1ae8177 hwc: Define binder interface to set view frame of a display
Define binder interface setViewFrame to set view frame information
of a display by surfaceflinger when projection for that display
changes.

Change-Id: If737b51ae0f04303a1a29c91a9703f64354b61fb
2015-01-09 14:18:05 -08:00
Saurabh Shah e095244acd hwc: Source Split layers always if indicated by driver
Source Split layers always if the driver indicates so by setting
the src_split_always in the capabilities sysfs node.
This is applicable to layers whose width > mixer's width, since
MDP clk rate is dependent on max(mixer_width, layer_width).

This feature can be enabled if the panel height is more than a
certain empirically derived value. Splitting always in those
cases can help with a lower voltage.

Change-Id: If9b33f11ca4132eb77416c26819f7473c65d3b08
2015-01-09 14:18:05 -08:00
Jeykumar Sankaran 514cb6b3f4 hwc: Support single ROI for split panels.
For panels that cannot accept commands in both the interfaces, we cannot
send two ROI's (for each half). We merge them into single ROI and split
them across lSplit for MDP mixer use. The ROI's will be merged again
finally before updating the panel in the driver.

 - Reads panel property of dual control path.
 - If dual control path not supported, merge ROI's before
   analysing for composition strategies.

Change-Id: I67e361a299dc5d1adb28b180900e24633eefc4a8
2015-01-09 14:18:03 -08:00
Jeykumar Sankaran 6f76346662 hwc: Extend partial frame update for split displays
Extends partial frame update support for split displays by calculating
changing region(ROI) independently for each half of the screen. In case of
only one half updating, display driver shuts down the DSI/MDP mixer control
of the non updating half.

Maintains two ROI's for each display. In case of Non-split
displays, only left ROI is updated.

Change-Id: I8a67fe40aac665a48b6f8a46beffb9f8027851b2
2015-01-09 14:18:03 -08:00
Ajay Dudani 591cee0efb display: Change LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH
To comply with multi-arch build system changes for 64-bit support,
LOCAL_MODULE_RELATIVE_PATH needs to be used.

Drop explicit use of LOCAL_MODULE_PATH as its not needed, and
causes build system to overwrite one of multi-arch library
variants with the other arch variant.

Change-Id: I882de72ad2003f1e2bcc93fb63bad7377a84d31d
2015-01-09 14:18:03 -08:00
Prabhanjan Kandula 26ca824f5a qdutils : Add mdp revision for 8x39.
Add mdp revision check for 8x39 to facilitate
any target specific checks with in HAL.

Change-Id: I115f4c8e54a11d240d02662eddce86c7528d3b19
2015-01-09 14:18:02 -08:00
Prabhanjan Kandula 319441687b hwc : Enable partial update if panel supports it.
Rely on panel info shared by driver and enable
partial update if it says as supported. Use the
existing property to disable partial update if
required for debugging.

Change-Id: I75d5dcbbfea08515d17150054ca91367319b929c
2015-01-09 14:18:01 -08:00
Jeykumar Sankaran 29e3491d8c h/q/d: Read minimum width and height values of the panel ROI
Read minimum width and height restrictions on ROI of a panel
through sysfs node.

Change-Id: I0e4c35cdcaee06e77955725565cfbed2f0fd91e9
2015-01-09 14:18:01 -08:00
Naseer Ahmed 3c3c2482b7 mdp_version: Check define for each version
Some of the definitions may not be present on AOSP builds while
other may. Check each definition to be sure.

Change-Id: Ia3cf8f024a3a6b6633a3be4646579f6cde0d5580
2015-01-09 14:18:01 -08:00
Ray Zhang eff8db6f52 qdutils: correct error checking of MetaData's handle mapping
In term of Linux manual, mmap() returns MAP_FAILED in case of
error, so current checking against NULL is not valid.

Change-Id: Iee6920b6478843a0c1cd62bdbe3e4b652a39c583
2015-01-09 14:18:00 -08:00
Chih-Hung Hsieh a882651fc7 Add space between concatenated string literals.
Clang gives a warning:
invalid suffix on literal; C++11 requires a space between literal
and identifier [-Wreserved-user-defined-literal]

Change-Id: I5ef54e5a8ac4d329cbe7900bc543cdb69ad6d462
2014-12-18 13:47:59 -08:00
Jeykumar Sankaran 962c5d172e libqdutils: Update panel capabilities from sys node
This change adds support to read more panel related informations
from sys node.

Change-Id: I64f37a35945ac700388335059cbb1cfbc9d4b4d7
2014-04-18 10:39:08 -07:00
radhakrishna 0fdae19330 h/q/d: Add utility function for 8x16 and read RGB scalar capability
- Add utility function for 8x16
 - Add internal function to identify if RGB doesn't
   support scaling that is read from capabilities node.
 - If UI layer needs scaling and RGB pipe doesn't
   support scalar, request a VG pipe
 - On 8x16, request DMA pipe for WFD

Change-Id: I94e8e0371bb10fcad53fddd2b7c45bc9b2594a4d
2014-04-18 10:39:08 -07:00
Naseer Ahmed 201e4c9a80 display: Remove VPU related code
Targets in which VPU interacts with display through HWC are no
longer supported.

Change-Id: I65a5348a375ad0c193a8659d0cdfb37c2db6f38e

Conflicts:
	msm8226/libhwcomposer/hwc_utils.cpp
2014-04-18 10:39:08 -07:00
Tatenda Chipeperekwa 1b9f24cfc5 hwc: Move aspect ratio helper function to qdutils
Move aspect ratio helper function to qdutils so it can be used
as a utility function in libvirtual and libexternal without
introducing a circular dependency.

Change-Id: Ib295c1d9f78bc8898b1aac9a443cdacf53150551
2014-04-18 10:39:08 -07:00
Simon Wilson a653efede0 Revert "Revert "msm8226: update to AU_LINUX_ANDROID_KK.04.04.02.010.224""
This reverts commit 90268aeae4.
2014-04-09 11:15:26 -07:00
Simon Wilson ef53c1c84e Revert "Revert "split msm8x26 and msm8x74 display HALs apart""
This reverts commit 13236c4d35.
2014-04-09 11:15:13 -07:00
Benoit Goby 13236c4d35 Revert "split msm8x26 and msm8x74 display HALs apart"
This reverts commit 32d546383b.
2014-04-07 13:54:06 -07:00
Benoit Goby 90268aeae4 Revert "msm8226: update to AU_LINUX_ANDROID_KK.04.04.02.010.224"
This reverts commit f96e0b957a.
2014-04-07 13:53:55 -07:00
Iliyan Malchev f96e0b957a msm8226: update to AU_LINUX_ANDROID_KK.04.04.02.010.224
Change-Id: Ia9af631171fb9ec64de1d1cb0ddf5be3e0fe9132
Signed-off-by: Iliyan Malchev <malchev@google.com>
2014-03-31 23:28:03 -07:00
Iliyan Malchev 32d546383b split msm8x26 and msm8x74 display HALs apart
Change-Id: I58a7dc129faa6eef4f7cdc8ee09fd42cd86c189b
Signed-off-by: Iliyan Malchev <malchev@google.com>
2014-03-31 23:27:57 -07:00