Validate right roi before using them in when dumping
the frame information.
Bug: 73253473
Change-Id: Ifa75c83d33f3d76914b47c9c8168eb4061ac5f88
Acked-by: Gousemoodhin Nadaf <gnadaf@codeaurora.org>
Layers with gamma 2.8 were being marked as not supported
and falling back to GPU, report them as supported and
handle them for HW composition
bug:77471420
Test: Reproduce bug scenario. With the CLs, verified both video and audio
work as expected using all the video modes.
Merge from https://partner-android-review.googlesource.com/#/c/1063539
Bug: 77471420
Change-Id: I5a94cbfc1ac9be22a6165803a79f6dca5711db34
Crs-fixed: 2220717
Add missing BT601_6_625 handing
bug:77471420
Test: Reproduce bug scenario. With the CLs, verified both video and audio
work as expected using all the video modes.
Merge from: https://partner-android-review.googlesource.com/#/c/1063538
Change-Id: I10034f38c8ab2283f13556ddf37bea51e7356a79
CRs-fixed: 2129768
Acked-by: Saurabh Shah <saurshah@codeaurora.org>
* Disable skip validation for solid fill during calibration.
* Require validation when the client changes the composition type
Bug: 77925367
CRs-Fixed: 2122072
Change-Id: I9ded200e5c15701f653c73d67c18c41de8278d52
We don't know how to handle blending when scRGB layers show up.
Fallback entirely to GPU.
Bug: 72125973
Change-Id: Ib01ac0c920bd34f011f0a4d3e76e71d4c7b036e2
The ClearRequestFlags() method iterates over layer_stack_ instead of
layer_set_. This causes a use-after-free since DestroyLayer() removes
layer from layer_set_ only. Besides that, the method need not be
virtual and has a redundant loop. This change removes the
ClearRequestFlags() method and clears flags in an existing loop.
Present() bails out if layer_set_ is empty or a shutdown is pending.
Since layers could have been destroyed before Present(), ideally
bailing out on re-validation has a higher priority over the rest.
Bug: 71538967
Change-Id: Ic7b31bbd07a22b8df47fccb2024b3415ab3a559b
CRs-fixed: 2165926
Acked-by: Saurabh Shah <saurshah@codeaurora.org>
* Add missing include $(LOCAL_PATH)/../common.mk and -Werror.
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I8cd29680bb623343a0dcac9e541b86a339b5a7c7
The module is using glTexImage3D which is a GLESv3 API. But it didn't
have GLESv3 in its dependency list. In fact, it implicitly relied on the
fact that the symbol exist in GLESv2 as a platform private one.
Test: BOARD_VNDK_VERSION=current m -j libgpu_tonemapper
Change-Id: Ib9ce0e5a54ec5b554d89a090e0224f5c9225966e
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
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
Header lib is preferred since a set of headers can have internal
dependency to other headers which are in different directories.
Bug: 37342627
Test: BOARD_VNDK_VERSION=current m -j memtrack.msm8998
Change-Id: I19b05ea960ba553eb9bbcd674eb9c50216169cef
Set Output parameters, only if HDR is supported by Display interface.
Bug: 62035971
CRs-Fixed: 2048854
Change-Id: I26ab07bdc8a797ccd16f5c3ac7a68cddb0b97db1
Acked-by: Sushil Chauhan <sushilchauhan@codeaurora.org>
This reverts commit 043ed03b67688a5807180b00651eea407d6a8b05.
Some EIS clients that use private_handle out of band don't work
correctly with this change. Revert until resolved.
Test: Open cameracorder @60fps, then switch to camera
Change-Id: Ie2d428f64131da9c089bc82578a3c928f078dcae
CRs-Fixed: 2049286
d0e57317 libmemtrack: Fix fd leak in kgsl function
f4c795824 hwc2: Fixes to find the right display mode
7736da3d6 hwc2: Add dataspace to dump
10c55d8f7 hwc2: Featurize dataspace support
46448c761 hwc2: Fix color mode setting
3bd5933a7 gralloc1: Add additional tracing
85bd493cd sdm: Reduce log severity for modes without attributes
ee517cd4e hwc2: Additional dataspace checks
df807f7a9 hwc2: Fix Hwc2Test.SET_VSYNC_ENABLED_no_callback_no_power
c993df564 hwc2: Fix cursor tests
16489f7fc hwc2: Do not return error if socket is not available
2a41010ef display: Add support to set color mode by ID
b58fcd56f hwc: Do not snprintf in trace unless needed
151591a70 hwc2: Remove power manager dependency
cf2f3d66b Revert "liblight: Add brightness level extension support"
232c50094 libdrmutils: Fix kernel dependency
043ed03b6 gralloc1: Support GRALLOC1_CAPABILITY_RELEASE_IMPLY_DELETE
Change-Id: I6765c7899433a0cb865e7aae092cb0a06adca59a