Commit Graph

6 Commits

Author SHA1 Message Date
Sushil Chauhan
815c8f6279 gpu_tonemapper: Tonemap unaligned width and height of source
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-23 18:12:33 -07:00
Linux Build Service Account
8ab97573ab Merge "display: Use ion cookie in GPU Tonemapper" 2017-02-05 18:41:26 -08:00
Arun Kumar K.R
4a8b118e2b display: Use ion cookie in GPU Tonemapper
- 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-27 17:52:14 -08:00
Naseer Ahmed
feaed06078 gpu_tonemapper: Fix compilation issue with GraphicBuffer
Handle different version of GraphicBuffer with a compile time
flag.

CRs-Fixed: 1111917
Change-Id: I11aa6d64a8e61a4d7658cb5f924ee4dc38c40bc9
2017-01-23 15:36:04 -05:00
Sushil Chauhan
1cc416f122 gpu_tonemapper: Clear EGLImage mappings in Tonemapper
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-11 18:51:08 -08:00
Arun Kumar K.R
2b75da399a gpu_tonemapper: Include gpu tonemapper
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
2016-12-16 11:26:15 -08:00