986f06e953 hwc2: Extend GetClientTargetSupport API
68326e2eb3 hwc2: validate display id in SetColorModeById
4436e52a74 gralloc1: Additional checks in release
4d52eb143c hwc2: cursor fixes
5023c503ad hwc2: Partial revert of 82c9033a8b
1933da3aeb sdm: Cleanup unused code, round 2
e85c316234 hwc2: Allow non-atomic execution of validate and present apis
a124ea3639 sdm: Synchronized write of xlogs
c6d27ee1ff sdm: Fixes for Skip Validate feature
768a791ebd hwc2: Check and set CSC only for device layers
4775fc505e gpu_tm: Use vendor module for header includes
a296c8f493 sdm: Change error log to conditional verbose
3f82fca6a9 cec: Calculate buffer length to protect from overflow
82c9033a8b hwc2: Handle corner and error conditions properly.
e2ac3bb4ba gralloc1: Do not do early validation on Release
eaa0a4d697 gralloc1: Do not map metadata in gralloc
b6569c6679 display: Cleanup unused code
3ab38f43fa hwc2: Use CSC information from android dataspace
Bug: 63146977
Bug: 63691933
Bug: 62992393
Bug: 37480806
Change-Id: I1ba2c33e04f637e424355854f32f3c6cdf789a8d
* changes:
libmemtrack: Fix fd leak in kgsl function
libmemtrack: Fix integer overflow in kgsl function
libmemtrack: fix ion memory tracking
libmemtrack: Update parsing of kgsl mem file
libmemtrack: Properly account for memory usage
libmemtrack: Update the parsing of flags field
In the kgsl function which gets memory info for a
pid, there could be possibility of integer overflow
in operations with size, mapsize, accounted_size,
and unaccounted_size due to which result might be
smaller than these values. External inputs size and
mapsize are verified, and overflow check has been added.
Change-Id: Ic511f92574d80e0d596975db16a43787699ae543
Use 2 new columns from the kgsl debugfs mem file:
egl_surface_count: # of buffer attachments with usage=egl_surface
egl_image_count: # of buffer attachments with usage=egl_image
If an ion buffer is mapped with usage=egl_surface, the entire size will
be counted towards the egl_surface. The assumption is that the buffer
will be freed if the producer process is killed.
To handle buffers such as the wallpaper and texture atlas which have
no producer and are potentially mapped multiple times, assign each
process where usage=egl_image a size of "size / egl_image_count". This
ensures that the total memory usage is correct, while still assigning
some memory to each process which maps the buffer.
The above replaces the attempts to avoid double counting buffers using
the "is_surfaceflinger" check.
Change-Id: Icd2dc230edb6b5beb7a20dad45d2d066e9e4d623
The mem file now has additional field, the mapsize. This
represents the size in bytes mapped to userspace. Use this
value and total size of an object to derive the unaccounted
size.
Change-Id: I36b03e49f431f11db7b06f1366cd37d264381747
The length of flags field in kgsl debugfs mem file has changed
from 7 to 8. Hence, change the parsing in libmemtrack accordingly
Change-Id: Ia94ee7b41a7903badc42851a05c61940ece67ef5
The header lib 'display_headers' exports headers under libgralloc1.
However, headers at libgralloc1 is internally using libhardware_headers.
Export this to the clients of display_headers.
Bug: 37342627
Test: BOARD_VNDK_VERSION=current m -j libqdMetaData
Change-Id: I2cdf699468aca3f9142e1ef5e756ec9f040e7a6e
When the vndk is enabled (BOARD_VNDK_VERSION=current),
vendor libraries must only link against vendor variants
in the build system. This also means that they receive
restricted sets of headers and that automatic global
headers are restricted.
Test: BOARD_VNDK_VERSION=current m -j k lights.msm8998
Bug: 37342627
Change-Id: I300654fbe4774c43a61104b9be0833fd06fa1548
af20b3030 qdutils: Add dependency on libhardware headers
07a82a250 display: Mark header modules as vendor
596d6789d hwc2: Do not reapply mode if it is the same as before
02f73fd2c sdm: hwc2: Support Skip Validate feature
2174cfe4b sdm: Use sync task utility for hdr tonemapping.
d002e1e90 sdm: Add sync task utility.
ea6921875 sdm: Add factory template for compile time exclusion.
77555e0a1 sdm: Use color metadata if Android framework metadata is not set
13f038dd6 gpu_tonemapper: Tonemap unaligned width and height of source
4a6a02514 hwc2: Add support to disable HDR handling
a58b93ebf hwc: gpu_tonemapper: Create Secure EGL Context
d7aed8703 hwc2: Pass secure flag to GPU tonemapper
3aff84da4 hwc2: Add support for HDR and HWC tonemapping
177e21f29 display: Store and restore the current eglContext
c659af50a gpu_tonemapper: Adjust sample points to maintain linearity
6e37120ce hwc2: Set client target dataspace
dc34aca12 gralloc1: Align buffer size for each layer
8cf3382bc gralloc1: Update client allocated handle behaviour
2d151167f hwc2: Fix compilation issue
40c96cd19 sdm: handle debug data in hw_device
4e520db60 sdm: hwc2: Check for HDR support by Display interface
9a534715b hwc2: Check composition type in SetLayerBuffer
3507a146a sdm: Update xlogs dump
ba5bbd5a9 hwc2: Disable detail enhancer
3a1f7b12a sdm: Save debug logs on pingpong timeout
Bug: 63111041
Bug: 63335893
Change-Id: I645b5d82c73100821879bf03fd5b836dca2d2c63