summaryrefslogtreecommitdiff
path: root/libs/gui/DisplayLuts.cpp
diff options
context:
space:
mode:
author Yiwei Zhang <zzyiwei@google.com> 2024-03-18 22:01:42 +0000
committer Yiwei Zhang <zzyiwei@google.com> 2024-04-20 00:28:16 +0000
commit3aef18eed051782d0c0753c4425d6be40298451b (patch)
tree250f5d2a013d995f6d15e0c21ce312ca8cfa0c63 /libs/gui/DisplayLuts.cpp
parenta080e37010de88182839a4d9a66a15aa46bb38f0 (diff)
EGL/ANGLE/Vulkan: respect EGL resolved RGBX format
Platform EGL is able to resolve rgb8 config to rgbx hal format but it currently skips setting the resolved format to the surface if ANGLE is detected in use. Meanwhile, Vulkan surface and swapchain lacks info to properly resolve RGBA8 vk format to rgbx hal format like platform EGL. So we'd wire through such info from the EGL side to the surface so that EGL->ANGLE->Vulkan can end up picking up the same format. Summary: 1. allow EGL to resolve and set surface format even with angle 2. vk surface to query default format for OPAQUE advertisement 3. angle already picks up OPAQUE only without sized alpha 4. (optional) besides format, also allows to set resolved dataspace Bug: b/335925862, b/328125698 Test: encoder cts is passing, and no regression to ImageReader use cases Change-Id: I4e977a278fc0659b6c5e91cad7b5755c9da3a28c
Diffstat (limited to 'libs/gui/DisplayLuts.cpp')
0 files changed, 0 insertions, 0 deletions