Module: Mesa Branch: staging/18.2 Commit: c2b252ceeda15faa3e3c29e938fc6298be6d6cd1 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c2b252ceeda15faa3e3c29e938fc6298be6d6cd1
Author: Lionel Landwerlin <lionel.g.landwer...@intel.com> Date: Tue Nov 6 11:37:51 2018 +0000 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.landwer...@intel.com> Fixes: a1220e73116bad7 ("anv/android: Set the BO flags in bo_cache_import (v2)") Reviewed-by: Tapani Pälli <tapani.pa...@intel.com> (cherry picked from commit 421fa01d64d9f2a7191ded3a819118d216436ab8) --- src/intel/vulkan/anv_android.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_android.c b/src/intel/vulkan/anv_android.c index a3bab8087b..bb67a3ae4f 100644 --- a/src/intel/vulkan/anv_android.c +++ b/src/intel/vulkan/anv_android.c @@ -128,7 +128,7 @@ anv_image_from_gralloc(VkDevice device_h, */ int dma_buf = gralloc_info->handle->data[0]; - uint64_t bo_flags = 0; + uint64_t bo_flags = ANV_BO_EXTERNAL; if (device->instance->physicalDevice.supports_48bit_addresses) bo_flags |= EXEC_OBJECT_SUPPORTS_48B_ADDRESS; if (device->instance->physicalDevice.use_softpin) _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit