Commit Graph

32 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
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
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
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
Naseer Ahmed b1df9d27dc gralloc: Handle RAW_OPAQUE formats similar to blob
Change-Id: I957b9d5902f6ea3714b46f3900e9f039b4667f0a
2015-12-10 11:42:16 -08:00
Lajos Molnar d6e36fa315 gralloc: 8960: add lock_ycbcr support for HAL_PIXEL_FORMAT_YV12
Bug: 21596464
Change-Id: Ibd469011f8b401a7817a752db07dc7eff1a7b69a
2015-06-19 17:38:45 -07:00
Chien-Yu Chen db3ff66fd3 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.

Bug: 21880984
Change-Id: Ieb659c05d0a69db815e6a3a0b1b574a746b3dc90
2015-06-17 10:45:10 -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
Praveen Chavan 94e44e9fc8 am e33bae63: gralloc: 8960: Add allocation support for standard NV12
* commit 'e33bae63cde0b553009cb6907b7ed69acd833c59':
  gralloc: 8960: Add allocation support for standard NV12
2015-02-06 00:06:58 +00:00
Lajos Molnar 001ded21b4 am 0498964e: Merge "gralloc: 8960: handle YCbCr 420SP format in lock_ycbcr" into lmp-mr1-dev
* commit '0498964ed0b90a3252b2b5054bbccc927f4ab57f':
  gralloc: 8960: handle YCbCr 420SP format in lock_ycbcr
2015-02-06 00:06:58 +00:00
Praveen Chavan e33bae63cd gralloc: 8960: Add allocation support for standard NV12
Video decoder advertizes standard NV12 format
(OMX_COLOR_FormatYUV420SemiPlanar) in place of TILE,
if the app requests for a linear color-format explicitly.
Accept this format keeping the size-aligment restrictions
same as NV12-TILE

Bug: 17906609
Change-Id: I9ec241608ae01a7e38f78d4dcfd66981795c2dc6
2015-02-05 05:33:28 +00:00
Praveen Chavan 41b4b6aab2 gralloc: 8960: handle YCbCr 420SP format in lock_ycbcr
Bug: 17906609
Change-Id: I28476291908f564477bb1d7a34196aed3e811f0d
2015-02-04 15:14:16 -08:00
Andreas Gampe 6d5467dc95 msm8960: Remove unused variables & functions
For build-system CFLAGS clean-up, remove unused variables and
functions.

Bug: 18632512
Change-Id: Ib9e5013bfd95b7f32f3574e6945aa7637fc59339
2014-12-08 21:43:36 -08:00
Chih-hung Hsieh 174dd59a0d am fb37b117: Merge "Use standard initializers"
* commit 'fb37b11703cb95bef058b29715f879c5afd7b908':
  Use standard initializers
2014-10-16 20:54:35 +00:00
Chih-hung Hsieh fb37b11703 Merge "Use standard initializers" 2014-10-16 20:48:47 +00:00
Bernhard Rosenkraenzer ce2c4b3174 Use standard initializers
The code currently uses GNU initializers as opposed to C99 initializers.
Clang emits a warning about this, causing the -Werror build to fail.
Either variant works fine in gcc.

BUG: 18017604

Change-Id: I196b809e085637e097706557ce62462dba8b2c3d
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2014-10-16 18:03:16 +00:00
Chih-hung Hsieh edafdf490f am 0de50bb3: Merge "Put singleton static instance declarations into the android namespace"
* commit '0de50bb3810cc5dd47b435d8ef2a5c7364b1d83f':
  Put singleton static instance declarations into the android namespace
2014-10-15 22:33:12 +00:00
Chih-hung Hsieh 0de50bb381 Merge "Put singleton static instance declarations into the android namespace" 2014-10-15 22:16:59 +00:00
Shuzhen Wang 9c043caec3 gralloc: Add opaque raw and raw16 supports
Bug: 13769626

Change-Id: I85a48edc992e7e1f1a814940e4ef8ea120514dec
2014-04-04 22:51:39 +00:00
Elliott Hughes 9116e9d912 am 27e1e062: resolved conflicts for merge of c6918a50 to klp-modular-dev-plus-aosp
* commit '27e1e06225d22b167025d627346815cd6ac1033e':
  Move qcom off <asm/page.h>.
2014-02-25 00:24:49 +00:00
Elliott Hughes bec6017f76 Move qcom off <asm/page.h>.
Change-Id: If6cc0e55b90df72aed2851eb35af166af1e0a24b
2014-02-24 15:47:28 -08:00
Christopher Ferris d8d7957b67 Fix to compile with uapi headers.
Remove include <linux/android_pmem.h> since it's not used and it doesn't
exist in the uapi kernel headers.
Make the include of <linux/genlock.h> conditional on USE_GENLOCK.

Bug: 11559337
Change-Id: I0eba13b71090fe29652a9794b223d577232509ac
2013-12-13 15:00:37 -08:00
Bernhard Rosenkränzer 73cde9b41a Put singleton static instance declarations into the android namespace
clang 3.4 complains about the declarations happening outside of the
namespace being a C++11 extension.
Putting them into the namespace works with all compilers.

Change-Id: I7d5d840a89b16baa8553ffc69b6c57134fc36178
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2013-12-12 23:54:36 +01:00
Christopher Ferris 28ccfbf7db Fix to compile with uapi headers.
Remove include <linux/android_pmem.h> since it's not used and it doesn't
exist in the uapi kernel headers.
Make the include of <linux/genlock.h> conditional on USE_GENLOCK.

Bug: 11559337
Change-Id: Iebe05f2300509c714690613342791e9ff0d3e0a9
2013-12-12 13:18:32 -08:00
Rom Lemarchand e9e1e3a161 display: rename ion_allocation_data.heap_mask to heap_id_mask
Rename the heap_mask field in ion_allocation_data struct to heap_id_mask and
match the new kernel header.

Change-Id: I245eb01e001eb87941dfe13336e5b72c97b0778a
2013-11-06 08:28:57 -08:00
Naseer Ahmed 5d1d54ff7c gralloc: Perform function to return custom stride
The custom stride can be set by video for smooth streaming.
Return this in perform so that graphics can use it.

Bug: 10192531
Change-Id: I798fc0894b8d9662e93769a53a540cb61b527a44
2013-10-08 09:22:46 -07:00
Jesse Hall 277c3f1bc1 Replace sRGB_888 with sRGB_X_8888
Bug: 10357459
Change-Id: I4d462ed21a3b53dbe84319cce802ff92043e5002
2013-08-16 07:55:56 -07:00
Naseer Ahmed 32c2c1b149 gralloc: Add allocation support for sRGB formats
Refer to graphics.h for the definition of these new formats.
The HWC doesn't yet support output to these formats.

Change-Id: Ib924e7b41ccedb808631e0a23f706f3d9a209048
2013-07-31 15:34:03 -07:00
Mathias Agopian 966f989a6d get rid of HAL pixelformats 5551 and 4444
Change-Id: I817510c3c7c0c3d95924c2ffc79e5727a6d6c48f
2013-07-26 14:58:00 -07:00
Naseer Ahmed 94fd4abe8a display: Export headers
Display headers used by other components should be at a common
location to avoid issues with future changes in paths.

Change-Id: I9a87a2a34ac7e88019dea2ae258d611ef34df6bc
2013-07-22 11:40:31 -07:00
Vineeta Srivastava 513ddc2124 Splitting hardware/qcom/display chip specific.
Moved msm8960 specific code in msm8960/ directory.
Moved msm8974 specific code in msm8974/ directory.
Updated Makefiles to point to correct header files.

Change-Id: I0623022f324be0ae42571660074f16afa1f71df5
2013-06-12 11:06:34 -07:00