summaryrefslogtreecommitdiff
path: root/gpu_tonemapper
AgeCommit message (Collapse)Author
2021-04-14Merge remote-tracking branch ↵android-12.0.0_r32android-12.0.0_r29android-12.0.0_r28android-12.0.0_r27android-12.0.0_r26android-12.0.0_r21android-12.0.0_r20android-12.0.0_r19android-12.0.0_r18android-12.0.0_r16android12-qpr1-releaseandroid12-qpr1-d-s3-releaseandroid12-qpr1-d-s2-releaseandroid12-qpr1-d-s1-releaseandroid12-qpr1-d-releaseandroid12-devWilson Sung
'goog/qcom/release/LA.UM.7.8.9.C3.08.00.00.787.021' into sc-dev Bug: 185197826 Change-Id: I2466b46543d6daa92fa6d6660eaafd8e9157eef3
2021-02-12[LSC] Add LOCAL_LICENSE_KINDS to hardware/qcom/sdm845/displayBob Badour
Added SPDX-license-identifier-Apache-2.0 to: libhistogram/Android.mk libmemtrack/Android.mk Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution to: Android.bp gralloc/Android.mk libqservice/Android.bp sdm/libs/hwc2/Android.mk Added SPDX-license-identifier-Apache-2.0 legacy_not_a_contribution to: gpu_tonemapper/Android.mk liblight/Android.mk Added SPDX-license-identifier-BSD to: hdmi_cec/Android.mk libdebug/Android.mk libdisplayconfig/Android.mk libdrmutils/Android.mk libqdutils/Android.bp sdm/libs/core/Android.mk sdm/libs/utils/Android.mk Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I8ccb4cb621fcd75c1736613789397e4187a892ce
2020-11-26gpu_tonemapper: Fix compilation issueBaldev Sahu
Change-Id: I7395228f7ac7434e13c567ff17c7eb5211afd1fa
2020-05-19fix -Wunreachable-code-loop-increment am: e51ddb3fb6 am: 8dacc4102dGeorge Burgess IV
Change-Id: I40a2a44dee8a359f3af8af61a2223ab77046aa74
2020-05-18fix -Wunreachable-code-loop-incrementGeorge Burgess IV
`glGetError()` may return more than one error, yet these loops never iterated more than once. This CL fixes that, and cleans up some useless casting. Same fix as Ib2d3a6a95726fa954426a3644635dcf41fb571db. Bug: 150166387 Test: TreeHugger Change-Id: I67f0f30445cfb6ce86c3de9984b4f87f9f302c1d
2019-12-15display: Remove C++ standard flagsRamakant Singh
Some headers included by display modules require c++17 now in newer builds. Remove the forced standard setting to let the build pick the latest C++ version Change-Id: I76f9e0c03ce08100c3dd7caf5932eaa941fff0c8
2019-12-04gpu_tonemapper: Use latest version of C++Marissa Wall
Bug: 145688115 Test: Compiles Change-Id: I12819cdf26448a45c8f73b6e9a3bdc68c53136d3
2018-04-02display: More fixes for VNDKNaseer Ahmed
Change-Id: I8887ffdde3d6f39f9405dd38e8eaedbb8da2a9b4
2018-03-28Build libgpu_tonemapper with VNDKJiyong Park
add libGLESv3 to the dependency list. glTexImage3D is available from v3. Bug: 69574580 Test: m -j Test: BOARD_VNDK_VERSION=current m -j libgpu_tonemapper Change-Id: I40305dbcc1542cb638bd17db78b24a15cffeabab
2018-03-06display: Use log.h from VNDKNaseer Ahmed
Change-Id: I8aa8566036a44b1587f5cfe6c745e11a3dd19481
2017-08-08gpu_tm: Use vendor module for header includesNaseer Ahmed
Change-Id: I1c20f58006a10866164f1f5c5e29e3c0746dedc8
2017-07-25Revert "display: Store and restore the current eglContext"Rajesh Yadav
This reverts commit 99ff47d39ed58a04890ccf8ba9d86ef2a5621270. Context restore is not required as HWC2 runs in hal context. Change-Id: If12e53f684db6440b8232f5a694220e88842445c
2017-06-02Merge "hwc: gpu_tonemapper: Create Secure EGL Context"Linux Build Service Account
2017-06-01Merge "gpu_tonemapper: Tonemap unaligned width and height of source"Linux Build Service Account
2017-05-29display: Use LOCAL_VENDOR_MODULENaseer Ahmed
Avoids hardcoding paths in vendor Change-Id: I6411c27cebfd8bc1d65bc84942b4c2621f64e420 CRs-Fixed: 2048581
2017-05-23gpu_tonemapper: Tonemap unaligned width and height of sourceSushil Chauhan
GPU tonemapper should tonemap only the source pixels within unaligned width and height. The aligned width and height of the source buffer can have padding due to alignment requirements, hence GPU tonemapper should not tonemap on the aligned width and height of the source. CRs-Fixed: 2048764 Change-Id: I71e9dcca6da2be9663053adc744f9958cc5c1148
2017-05-23hwc: gpu_tonemapper: Create Secure EGL ContextSushil Chauhan
- HWC tonemapper passes secure flag to GPU tonemapper to create object with secure EGL context. - Tonemapper object gets created with secure EGL context for the tone mapping of secure HDR layer. CRs-Fixed: 2048764 Change-Id: I7129505283527dbab17f1e9731d8f141b48bb310
2017-05-07display: Store and restore the current eglContextArun Kumar K.R
Tone mapper engine setting the current eglContext and never restored it. With multiple eglContexts used in same thread by SurfaceFlinger and GPU Tonemapper, it lead to incorrect eglContexts being used, hence always store the restore the eglContext in each GPUTonemapper call. CRs-Fixed: 2009259 Change-Id: Ic9fe73818ddfe3881e5fa82f7853dce130bba24e
2017-05-07gpu_tonemapper: Adjust sample points to maintain linearityArun Kumar K.R
Adjust texture sample points to maintain linearity throughout the sample range CRs-Fixed: 1110654 Change-Id: I2c198c9f330a0b6001d2eda28c0355f2c9ecbde4
2017-03-31display: Makefile fixesNaseer Ahmed
* Add dependencies in gpu tonemapper * Fix compile for hwc1 and gralloc1 CRs-Fixed: 2027609 Change-Id: I0f4303d8ea85d93be753e0031bcc3447ba407824
2017-03-29display: Move all opensource modules to vendor partitionNaseer Ahmed
Change-Id: I050988d96eccc1c3217a8f2030b333cd8d04c4d4 CRs-Fixed: 2010492
2017-03-01Revert "display: Move all opensource modules to vendor partition"Naseer Ahmed
This reverts commit 4c790408b144b8ddf117a8d94661c81c86304cfc. Change-Id: I32c48e300e8c641b196210c4412b635e1c1941f0 CRs-Fixed: 2013665
2017-02-28display: Move all opensource modules to vendor partitionNaseer Ahmed
CRs-Fixed: 2010492 Change-Id: I80bb14624e9a47189777bd4c8f8847ca946df74c
2017-02-05Merge "gpu_tonemapper:Fix uninitialized variables."Linux Build Service Account
2017-02-05Merge "display: Use ion cookie in GPU Tonemapper"Linux Build Service Account
2017-02-03gpu_tonemapper:Fix uninitialized variables.Pramodh Kumar Mukunda
Change-Id: I9cc15c326ff250acffb681f44aa50bf1a2dce741 CRs-Fixed: 1116798
2017-02-02Merge "gpu_tonemapper: Fix compilation issue with GraphicBuffer"Linux Build Service Account
2017-01-27display: Use ion cookie in GPU TonemapperArun Kumar K.R
- The fd's used for book-keeping can change when the clients close and reopen sessions, hence they are not reliable and can lead to incorrect virtual address usage causing corruption or stale data. - Hence use ion cookie for book-keeping which is unique for a given memory fd. - Use LRU method free up/reuse on reaching max limit. - Remove Tonemapper_destroy which is not needed anymore. Change-Id: I5777649b34210977c18ce20c65e0aa2baa8e7d26 Crs-fixed: 1110175
2017-01-23gpu_tonemapper: Use individual EGL contexts.Arun Kumar K.R
- Use individual EGL contexts for each tone-mapping session. - Having one context make multiple sessions serial, this helps in making this parallel when possible. - Resolves error messages which happened when the context was deleted during mirroring. Change-Id: Ia8738551b4189dccffb233320a9d69fcfd7f0118 Crs-fixed: 1115057
2017-01-23gpu_tonemapper: Fix compilation issue with GraphicBufferNaseer Ahmed
Handle different version of GraphicBuffer with a compile time flag. CRs-Fixed: 1111917 Change-Id: I11aa6d64a8e61a4d7658cb5f924ee4dc38c40bc9
2017-01-19gpu_tonemapper: Get Current EGL context in DestructorArun Kumar K.R
Need to switch to current egl context before deleting the program other wise it leads to errors and may not clean up cleanly on deletion. Change-Id: Ib4c59511e6aec7c7dd7b27ea26e26b189f9bc87f Crs-fixed: 1113295 Crs-fixed: 1110936
2017-01-18Merge "gpu_tonemapper: Clear EGLImage mappings in Tonemapper"Linux Build Service Account
2017-01-12gpu_tonemapper: Fix forward tonemap shaderArun Kumar K.R
Fix the in-correct handling of the verticies in the forward tonemap shader which led to the vertical flip of tonemap out. Change-Id: I17ed607c35f41a349fd39646066b108c792534a0 Crs-fixed: 1106032
2017-01-11gpu_tonemapper: Clear EGLImage mappings in TonemapperSushil Chauhan
Tonemapper does not clear the eglImage/fd mappings in the destructor, which leads to incorrect usage of those fds, when a tone map session gets deleted and a new session gets created, leading to artifcats. CRs-Fixed: 1104823 Change-Id: I9697eff93f9e5f150796a582f471246bca3b2816
2017-01-06gpu_tonemapper: Free eglImage on terminationRajesh Yadav
Buffers used for gpu tone mapping were getting leaked as eglImage was not destroyed. Free eglImage on termination. Change-Id: I4473bc01efd2d7c8e19b7d3cbcd8330eff591081 Crs-fixed: 1106899
2016-12-16gpu_tonemapper: Include gpu tonemapperArun Kumar K.R
GPU tonemapper library which is used by HWC to tone map the layers from one Gamut to another based on the 3D LUT. Change-Id: Iccaa38e40989e832fd3891a24eca494aba696d9a Crs-fixed: 1094964