OSDN Git Service

Update usage flag handling for hwc
authorMauro Rossi <issor.oruam@gmail.com>
Fri, 29 Jun 2018 11:45:10 +0000 (13:45 +0200)
committerRob Herring <robh@kernel.org>
Mon, 2 Jul 2018 22:58:19 +0000 (16:58 -0600)
commit137cc39aaa57f8c64db3397cd6ec7600a191a88d
tree31c858bc1d05b1d3995fbaff59aa87bbba7f5907
parent27763e0d43cc16387d6de8ad89eafba33d5072e3
Update usage flag handling for hwc

Add support for GRALLOC_USAGE_HW_COMPOSER usage flag
mapping it to GBM flags, inspired by minigbm implementation.

Fixes the artifacts issues with vulkan hal radv with the following apps
with benefit to all apps using HWC layers:
V1 - GPU Benchmark Pro (Vulkan API)
PPSSPP - PSP emulator
Sascha Willems Vulkan Examples (e.g. Vulkan Gears, Vulkan Texture)

Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
gralloc_gbm.cpp