OSDN Git Service

anv/android: mark gralloc allocated BOs as external
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 6 Nov 2018 11:37:51 +0000 (11:37 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 8 Nov 2018 16:05:06 +0000 (16:05 +0000)
commitecb1bef8714ede7b3b5b00a62c749b4c1b722e1c
treeef05fb7393db5ece1d6f8b6368074ea169fe6e4c
parenta93d19f5426d6069b9858d87fb2e9c78fbbbb02d
anv/android: mark gralloc allocated BOs as external

Allocating through Gralloc implies buffers are going to be used
outside the driver. We have special MOCS settings for external BOs and
we probably want to use them here too.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: a1220e73116bad7 ("anv/android: Set the BO flags in bo_cache_import (v2)")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
(cherry picked from commit 421fa01d64d9f2a7191ded3a819118d216436ab8)
src/intel/vulkan/anv_android.c