OSDN Git Service

anv/android: Set the BO flags in bo_cache_import (v2)
authorMauro Rossi <issor.oruam@gmail.com>
Mon, 4 Jun 2018 00:48:09 +0000 (02:48 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 12 Jun 2018 08:16:39 +0000 (11:16 +0300)
commita1220e73116bad74f39c1792a0b0cf0e4e5031db
treea111417c63b59bad147fa7ec3202c7e10aac9537
parent0d5329d626e3f96a7788880052ae2a5ecfc8cdbe
anv/android: Set the BO flags in bo_cache_import (v2)

Changes to avoid building error:

external/mesa/src/intel/vulkan/anv_android.c:131:72:
error: too few arguments to function call, expected 5, have 4
   result = anv_bo_cache_import(device, &device->bo_cache, dma_buf, &bo);
            ~~~~~~~~~~~~~~~~~~~                                        ^
1 error generated.

(v2) Set the correct bo_flags based on support of 48bit addresses and soft-pin

Fixes: b0d50247a7 ("anv/allocator: Set the BO flags in bo_cache_alloc/import")
Fixes: e7d0378bd9 ("anv: Soft-pin client-allocated memory")
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_android.c