• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

external/gbm_gralloc


Commit MetaInfo

Revision137cc39aaa57f8c64db3397cd6ec7600a191a88d (tree)
Zeit2018-07-03 07:58:19
AutorMauro Rossi <issor.oruam@gmai...>
CommiterRob Herring

Log Message

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>

Ändern Zusammenfassung

Diff

--- a/gralloc_gbm.cpp
+++ b/gralloc_gbm.cpp
@@ -147,6 +147,8 @@ static unsigned int get_pipe_bind(int usage)
147147 bind |= GBM_BO_USE_RENDERING;
148148 if (usage & GRALLOC_USAGE_HW_FB)
149149 bind |= GBM_BO_USE_SCANOUT;
150+ if (usage & GRALLOC_USAGE_HW_COMPOSER)
151+ bind |= GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING;
150152
151153 return bind;
152154 }