Commit Graph

1267 Commits

Author SHA1 Message Date
Artem Borisov bf30ca71bb msm8960/8974/8084: Include string.h where it is necessary
Change-Id: If14f25659b3f898b19fde6c9d920998e80d19660
2019-01-19 21:20:53 +01:00
Tom Marshall 8def73c018 hwc: Validate display ID in hwc interfaces
Validate the display ID before processing any calls from the
client.  This is needed to handle only the displays which are
supported by HWC

Adapted from commit of the same title in CAF msm8974 tree.

Original author: Arun Kumar K.R <akumarkr@codeaurora.org>

Change-Id: Iebeeabf791b5c53e811e1f4bb3d777ab0e4d0f47
2018-09-21 14:50:15 +02:00
Martin Brabham 0d7b20f64c Include string.h
libgralloc: strerror needs string.h
libqdutils: strerror needs string.h
libcopybit: memcpy needs string.h

Bug: 72343089
Change-Id: I36226fd656d26c4d0486d1c99f2317376c0d08dd
2018-09-14 09:46:50 +02:00
Haynes Mathew George dcb016231e display: Fix deprecated log warning
Change-Id: Ib3cb65ea19fa21dca6626080f5117073f0a86766
2018-09-13 23:23:30 +02:00
Chih-Hung Hsieh 6fd2d4bb57 Add -Wno-error to compile with global -Werror.
Bug: 66996870
Test: normal builds.
Change-Id: Iee4ac5f95a2013c5eeac1c061889a593caf0ec36
2018-01-04 12:09:30 -08:00
Jiyong Park da9d9de59c Move QCOM HALs to vendor partition
In order to build generic system image that is agnostic to SoC or
device, such HALs should be moved from system partition to vendor
partition.

HALs moved: copybit, gralloc, hwcomposer, light, memtrack, hdmi_cec

Bug: 34826389
Bug: 35232083
Test: build & run and check whether the HAL is loaded from
/vendor/lib[64]/hw.
$ su; lsof | grep hwcomposer

Change-Id: I2bb617ac71ab040a5b1ba306c194e8672ac84561
2017-02-24 13:53:21 +00:00
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
Vijay Venkatraman 00503c727d Merge "Revert "Add missing header to export includes."" am: 1b5c443a9e am: 5ac9608ba2 am: 0e7ba25661
am: f846ab2614

Change-Id: Id05fff6503a5ec6bc20c7c98664e43330cb14e01
2017-02-07 19:52:04 +00:00
Vijay Venkatraman 1b5c443a9e Merge "Revert "Add missing header to export includes."" 2017-02-07 19:29:26 +00:00
Vijay Venkatraman 5f1dbd8d46 Revert "Add missing header to export includes."
This reverts commit b2b1c9a9fd.

Change-Id: I1155f44e1c43bfa40c966b48c5ed8ed0e984e318
2017-02-07 19:27:40 +00:00
Vijay Venkatraman 8a396a5aad Merge "Revert "Replacing LOCAL_COPY_HEADERS with LOCAL_EXPORT_C_INCLUDE_DIRS, for VNDK"" am: c6d20e7256 am: 2541d5d183 am: 78abe6b901
am: 43a0938645

Change-Id: I4f378cba373ef27c233357ef855f5704084e5329
2017-02-07 19:07:31 +00:00
Vijay Venkatraman c6d20e7256 Merge "Revert "Replacing LOCAL_COPY_HEADERS with LOCAL_EXPORT_C_INCLUDE_DIRS, for VNDK"" 2017-02-07 18:58:14 +00:00
Vijay Venkatraman 292b685456 Revert "Replacing LOCAL_COPY_HEADERS with LOCAL_EXPORT_C_INCLUDE_DIRS, for VNDK"
This reverts commit f518f8537f.

Change-Id: I9d88e454d5e71b8470d9fe18dc230fe3f2c9309d
2017-02-07 18:56:45 +00:00
Martijn Coenen bd5dea8545 Merge "Add missing header to export includes." am: ef2f137e1a am: fd6f0c560e am: ad6a9ef6cd
am: 47c452125c

Change-Id: Ib74303ab1663419c1bfde9ce0e8481f3e8674644
2017-02-06 14:56:51 +00:00
Martijn Coenen b2b1c9a9fd Add missing header to export includes.
Test: shamu internal also builds again.
Change-Id: Id3349b9ada167c1d4a995968fa2adda80ed08e38
2017-02-06 13:48:57 +01:00
Martijn Coenen 684870d941 Merge "Replacing LOCAL_COPY_HEADERS with LOCAL_EXPORT_C_INCLUDE_DIRS, for VNDK" am: 3fafab5499 am: e5f9b5efd7 am: 2d6a4e5313
am: feb8bbe499

Change-Id: I5de3ec586c44c814559cdb2fe3e131df9088fde8
2017-02-06 12:11:10 +00:00
Martijn Coenen f518f8537f Replacing LOCAL_COPY_HEADERS with LOCAL_EXPORT_C_INCLUDE_DIRS, for VNDK
Test: shamu builds again
Bug: 33241851
Change-Id: Iabcef1ef53a18232cae42a68c9501262bf4af2ec
2017-02-06 10:39:28 +01:00
Dan Albert 4a797eb2a0 Merge "Fix -Wmacro-redefined werror issues." am: 3d4d976af2 am: 06d4d81212 am: 2e84083ef7
am: 33fc66f8e7

Change-Id: I24da518a22bc0dc4b03adcffbae7d7c7d378c89f
2017-01-31 03:49:45 +00: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
Alex Naidis 9fe2840616 Merge "hwcomposer: Fix regression in hwc_sync" am: a0de1d3cc3 am: 9e5907e6b4 am: e93a5f5337
am: 47cec256dd

Change-Id: I5c43ac8f3717c291e33504af5047022c05eedcbf
2017-01-05 04:10:17 +00:00
Alex Naidis 5936d78c2a
hwcomposer: Fix regression in hwc_sync
Hwc_sync is in the hotpath of display
rendering and gets called every ~17ms
during active rerendering.

Reading the property "debug.egl.swapinterval"
on every execution of hwc_sync causes a major
regression where the execution of hwc_sync
is much slower than it can be.

Doing I/O in hotpaths is inacceptable
and can cause an unnecessary constant
I/O load, additionally to the slowdown
in display rendering which was caused
in this case.

As solution, we condition this debugging
feature with "DISPLAY_DEBUG_SWAPINTERVAL",
so it can be enabled when explicitly needed.

Gralloc is not directly affected by the regression,
it was adjusted to match the conditioning
of the swapinterval debugging feature.

The HALs of msm8084,msm8226,msm8909,msm8960 and
msm8994 are affected by the regression and
get patched by this patch. Newer HALs
are not affected.

The stats contained in this patch were
collected using a Nextbit Robin (MSM8992),
which uses the msm8994 HAL.

Test: Manual testing for proper conditioning.
Test: Running full CTS suite without DISPLAY_DEBUG_SWAPINTERVAL set.

Change-Id: If08595d37ac0c1a19edd8d296289a21c9f95512a
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-12-27 16:38:36 +01:00
Hal Canary 8e9bbcb6fe SkImageEncoder->SkEncodeImage
Test: none
Change-Id: Idec9438683b4e542dca662b958368190faece7b6
2016-11-24 20:18:33 -05:00
Naseer Ahmed 7fb16885c1 shamu: gralloc: Revert gralloc: Use GRALLOC_USAGE_PROTECTED for L1 protection
am: f9af8a40d5

Change-Id: I1fafa4df70d6a35a77fe8aa2a2af3e8e43310932
2016-07-18 23:40:19 +00:00
Naseer Ahmed f9af8a40d5 shamu: gralloc: Revert gralloc: Use GRALLOC_USAGE_PROTECTED for L1 protection
Revert this for shamu as the original feature this was needed for
is not available on shamu

Bug: 29880419
Change-Id: I041849bca75c042b05608709825f465f436d0269
2016-07-18 14:34:59 -07:00
Arun Kumar K.R 42830bb1b4 hwc: Start with ROI set to destination am: 271d9d58a1
am: 712d1ef449

* commit '712d1ef449f79d6e63de93844e1369ac027e7f22':
  hwc: Start with ROI set to destination

Change-Id: Ieec92791015aa446778fe2defab7d6c1b03a372d
2016-05-31 05:01:16 +00:00
Arun Kumar K.R 271d9d58a1 hwc: Start with ROI set to destination
Some layers will not have surfaceDamage information,
like video and CPU rendered, so consider their destination
as the surfaceDamage. For other layers start with destination
will be calculated based on the surfaceDamage

Bug: 23218645
Bug: 28447536

Change-Id: Ic7308bf9dfb7d062596873963c738f644b1c1a84
2016-05-27 14:36:07 -07:00
Naseer Ahmed 4e632dc55c gralloc: Use GRALLOC_USAGE_PROTECTED for L1 protection am: 4f6feb11ed
am: 7bb7181ba3

* commit '7bb7181ba3307de753f5cce9679c762fb2440b25':
  gralloc: Use GRALLOC_USAGE_PROTECTED for L1 protection

Change-Id: I01656313edd3530c88739beeb000ff1d15edc30f
2016-04-30 00:31:27 +00:00
Naseer Ahmed 4f6feb11ed gralloc: Use GRALLOC_USAGE_PROTECTED for L1 protection
Do not require the MM_HEAP flag for TZ protection. This is in
line with the gralloc spec.

Bug: 27536318

Change-Id: I0bc7346b0a40061600707d8c1881a9d405995b4f
2016-04-27 23:44:21 +00:00
Dan Austin 406694c145 Merge "Address const issues in preparation for libcxx rebase." am: e6f184d
am: 32f71e4

* commit '32f71e4f81299f8e044cebff85d3cbd191674506':
  Address const issues in preparation for libcxx rebase.

Change-Id: If139b64389fb7b0ef8c6364823668df49f61a047
2016-04-23 05:57:57 +00:00
Dan Austin e6f184de2e Merge "Address const issues in preparation for libcxx rebase." 2016-04-23 05:48:27 +00:00
Christopher Wiley 1332ce2d51 Merge "libvirtual should depend on libmedia" am: caae155
am: 7018375

* commit '7018375d6bed338bc9e287e973ddf5f8855f3482':
  libvirtual should depend on libmedia

Change-Id: I93b0c867bdb3e10588c77acaa74fefc574fc86d6
2016-04-19 19:57:03 +00:00
Christopher Wiley 12200ce76a libvirtual should depend on libmedia
This library's source code includes libmedia headers.

Bug: 27804373
Change-Id: I5379455d6a10022e1e0b4fcf4efce11022c0301e
Test: Compiles
2016-04-19 12:48:01 -07:00
Dan Austin eaca5edc6c Address const issues in preparation for libcxx rebase.
Change-Id: I230de2a3743851444e4425ea04d276c49418f67e
2016-03-28 15:39:41 -07:00
Dan Willemsen 3b1d6059ba Merge "Fix duplicate copy file rules" am: f5ef45b92e
am: 41031c9406

* commit '41031c9406df7031a8dd6c5980463fa9c5198a67':
  Fix duplicate copy file rules
2016-02-24 00:19:56 +00:00
Dan Willemsen f7b40858db Fix duplicate copy file rules
If these libraries are built, both BUILD_COPY_FILES and
BUILD_SHARED_LIBRARY would copy the headers. This would create a warning
because multiple rules would define the same target header file.

Bug: 27302058
Change-Id: If91bd70d2320aaaee9679642ff9ea48b99739cbd
(cherry picked from commit b360857e92)
2016-02-23 16:17:09 -08:00
Dan Willemsen b360857e92 Fix duplicate copy file rules
If these libraries are built, both BUILD_COPY_FILES and
BUILD_SHARED_LIBRARY would copy the headers. This would create a warning
because multiple rules would define the same target header file.

Bug: 27302058
Change-Id: If91bd70d2320aaaee9679642ff9ea48b99739cbd
2016-02-23 14:19:52 -08:00
Naseer Ahmed b1df9d27dc gralloc: Handle RAW_OPAQUE formats similar to blob
Change-Id: I957b9d5902f6ea3714b46f3900e9f039b4667f0a
2015-12-10 11:42:16 -08:00
Richard Uhler 54c63971b5 libmemtrack: Fix the kgsl memory flag to determine usermapped buffers
The flag is the last character in 'flags' field array. It was wrongly
indexed at flags[6] causing all entries to be marked as unaccounted.
The correct check should be for flags[5] to be equal to 'Y'.

Bug: 20447631

Change-Id: Ibe9b88387a87b2caf37f3b20f8fd702dbef322db
2015-06-16 22:55:19 +00:00
Naseer Ahmed 8a2f28c616 gralloc: Use AOSP API to filter board platform
Change-Id: I35cf0dd15346a6444f3dc0259fd8a4ac2716d7a2
(cherry picked from commit 201084d947)
2015-05-08 09:25:23 -07:00
Arun Kumar K.R ecf38487b3 hwc: use surfaceDamage to calculate the dirtyrect as per HWC 1.5
Update the HWC version to HWC 1.5

surfaceDamage is passed as part of the layer, use this information
to determine if the layer is changing and handle cache.

The total dirty rectangle for a given layer will be the sum of all
the damageRectangles, use that to calculate the ROI

Bug: 11239309
Change-Id: Iddff278e716099d252e059aae02764f4b8630a6f
2015-04-22 19:34:59 +00:00
Naseer Ahmed 2c501a124d gralloc: Default flexible YUV format to NV21
There could be buffers allocated in flexible YUV format that do
not have any camera usage flags. Default such buffers to NV21.

Change-Id: Id66076e02fe600890b7fcfcb038fa2e7a95be09c
2015-03-13 15:47:03 -07:00
Eino-Ville Talvala 4ee9ce6a95 Remove sRGB, replace RAW_SENSOR with RAW16 graphics format.
Change-Id: I22a557cabcba4c0d0a87c8a982a324ebb3ba701a
2015-02-19 16:36:44 -08:00
Lajos Molnar 25999fa825 am 1a92db6e: Merge "gralloc: 8084/8226: align cstride for YV12 buffers in gralloc_lock_ycbcr" into lmp-mr1-dev
* commit '1a92db6e13aaa3e3fac037b930144a44e9b59347':
  gralloc: 8084/8226: align cstride for YV12 buffers in gralloc_lock_ycbcr
2015-02-06 00:06:59 +00:00
Lajos Molnar d535e59815 gralloc: 8084/8226: align cstride for YV12 buffers in gralloc_lock_ycbcr
Bug: 17906609
Change-Id: I2c29a14e2de5a678427a92559d94660d9c815553
2015-02-04 21:23:38 -08:00
Chih-Hung Hsieh 72f6d9a9d9 am f9d43752: Merge "Add space between concatenated string literals."
* commit 'f9d437521002de40578a0e3403c20bfd2c9d4a5e':
  Add space between concatenated string literals.
2014-12-18 23:35:15 +00:00
Jinsuk Kim 4828c87bcc am 0f763b1c: Fix broken build
* commit '0f763b1c47b14497351b246f15dea50452dcc3fe':
  Fix broken build
2014-12-18 22:31:05 +00:00
Jinsuk Kim 0f763b1c47 Fix broken build
Removed hdmi_cec as the device doesn't have the corresponding
hardware.

Bug: 18781204

Change-Id: I5b66919e1c2769fdce067e00007bf590f7099082
2014-12-19 07:19:03 +09: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
Naseer Ahmed e5c7595f58 am 641955a6: hwc: Add a padding round on virtual display connect
* commit '641955a674bb1c2efd5a3c11156f702dcd6afe5d':
  hwc: Add a padding round on virtual display connect
2014-12-02 01:33:28 +00:00
Naseer Ahmed 641955a674 hwc: Add a padding round on virtual display connect
This makes sure pipes are detached from the primary display when
a virtual display comes in so that there is a chance of the
virtual display getting at least one pipe.

Bug: 18023015
Change-Id: I34e11a05385555ca18b7f2d16bd429819f4ca689
2014-12-01 16:15:22 -08:00